ping / instagram_private_api

A Python library to access Instagram's private API.
MIT License
2.95k stars 612 forks source link

news() endpoint has been deprecated, should be marked as such in documentation #354

Open samhenrigold opened 3 years ago

samhenrigold commented 3 years ago

Please follow the guide below


Before submitting an issue, make sure you have:

Which client are you using?


Describe your issue

Instagram deprecated the Following Activity tab back in 2019 and the API has since been deprecated as well. Since it returns an error, it should be removed (or at least marked as deprecated) in the documentation.


Paste the output of python -V here: 3.9

Code:

from instagram_private_api import Client, ClientCompatPatch

user_name = 'redacted'
password = 'redacted'

api = Client(user_name, password)

print(api.news())

Error/Debug Log:

{'stories': [{'type': 13, 'story_type': 95, 'args': {'destination': 'news', 'text': "To focus on our most-used features, we're removing Following Activity. Update your app to see the new Activity tab.", 'timestamp': [redacted], 'tuuid': '[redacted]'}, 'counts': {}}], 'status': 'ok'}