Adapt new graphql layout used by Instagram

Fixes #19.
This commit is contained in:
André Koch-Kramer
2017-04-21 18:01:20 +02:00
parent 6b345e1f52
commit 361445519a
2 changed files with 53 additions and 27 deletions

View File

@@ -55,7 +55,7 @@ You may also download the most recent pictures with one hashtag:
::
instaloader #hashtag
instaloader "#hashtag"
Instaloader can also be used to **download private profiles**. To do so,
invoke it with
@@ -121,7 +121,8 @@ You could also download your last 20 liked pics with
.. code:: python
instaloader.download_feed_pics(session, max_count=20, fast_update=True,
filter_func=lambda node: not node["likes"]["viewer_has_liked"])
filter_func=lambda node:
not node["likes"]["viewer_has_liked"] if "likes" in node else not node["viewer_has_liked"])
To download the last 20 pictures with hashtag #cat, do