diff --git a/docs/codesnippets/113_only_one_per_user.py b/docs/codesnippets/113_only_one_per_user.py index 7d39c06..70aadb0 100644 --- a/docs/codesnippets/113_only_one_per_user.py +++ b/docs/codesnippets/113_only_one_per_user.py @@ -2,7 +2,7 @@ import instaloader L = instaloader.Instaloader() -posts = instaloader.Hashtag.from_name(L.context, 'urbanphotography').get_posts() +posts = instaloader.Hashtag.from_name(L.context, 'urbanphotography').get_posts_resumable() users = set() diff --git a/docs/codesnippets/666_historical_hashtag_data.py b/docs/codesnippets/666_historical_hashtag_data.py index 8b9f0fe..e929d66 100644 --- a/docs/codesnippets/666_historical_hashtag_data.py +++ b/docs/codesnippets/666_historical_hashtag_data.py @@ -3,7 +3,7 @@ import instaloader L = instaloader.Instaloader() -posts = instaloader.Hashtag.from_name(L.context, "urbanphotography").get_posts() +posts = instaloader.Hashtag.from_name(L.context, "urbanphotography").get_posts_resumable() SINCE = datetime(2020, 5, 10) # further from today, inclusive UNTIL = datetime(2020, 5, 11) # closer to today, not inclusive