Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update README for usage of private API #13

Closed
5 of 9 tasks
td391 opened this issue May 12, 2017 · 1 comment
Closed
5 of 9 tasks

Update README for usage of private API #13

td391 opened this issue May 12, 2017 · 1 comment

Comments

@td391
Copy link

td391 commented May 12, 2017

Please follow the guide below

  • Issues submitted without this template format will be ignored.
  • You will be asked some questions and requested to provide some information, please read them carefully and answer completely.
  • Do not post screenshots of error messages or code.
  • Put an x into all the boxes [ ] relevant to your issue (like so [x]).
  • Use the Preview tab to see how your issue will actually look like.
  • Issues about reverse engineering is out of scope and will be closed without response.

Before submitting an issue, make sure you have:

Which client are you using?

  • app (instagram_private_api/)
  • web (instagram_web_api/)

Purpose of your issue?

  • Bug report (encountered problems/errors)
  • Feature request (request for a new functionality)
  • Question
  • Other

The following sections requests more details for particular types of issues, you can remove any section (the contents between the triple ---) not applicable to your issue.


Describe your issue

The example of usage of the private API in the README does not work. The dictionary results returned by api.feed_timeline() seems to have been updated.
The following changes in README should work:

@@ -73,11 +73,11 @@ password = 'YOUR_PASSWORD'
 
 api = Client(user_name, password)
 results = api.feed_timeline()
-items = results.get('items', [])
+items = results.get('feed_items', [])
 for item in items:
     # Manually patch the entity to match the public api as closely as possible, optional
     # To automatically patch entities, initialise the Client with auto_patch=True
-    ClientCompatPatch.media(item)
+    media = ClientCompatPatch.media(item['media_or_ad'])
     print(media['code'])
@ping ping closed this as completed in a278856 May 12, 2017
@ping
Copy link
Owner

ping commented May 12, 2017

Thanks.

JulienMaille pushed a commit to JulienMaille/instagram_private_api that referenced this issue Aug 5, 2019
remove web api and rename repo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants