I am not sure how to fix the following piece of code to overcome the rate limits. Also, I am not sure why it stops at 10 posts even though I set the max_count to 100.
code:
import instaloader
loader= instaloader.Instaloader(download_comments=True,
download_videos=True,
download_geotags=True,
save_metadata=True)
loader.download_hashtag('fashion', max_count=100, fast_update=False, profile_pic=False)
Problem is:
(base) mona@mona:~/research/insta-scrape$ python instaloader_tester.py
Retrieving pictures with hashtag #fashion...
[ 1/100] #fashion/2020-11-30_03-20-10_UTC.jpg [@___eshika__rao @ieshu_rao …] comments json
[ 2/100] #fashion/2020-11-30_03-04-22_UTC.jpg [would you let me ride shotgun…] comments json
[ 3/100] #fashion/2020-11-30_03-02-28_UTC.jpg [✨I bite back ✨]
HTTP redirect from https://www.instagram.com/graphql/query to https://www.instagram.com/accounts/login/
JSON Query to graphql/query: 429 Too Many Requests: redirected to login [retrying; skip with ^C]
Requests within last 10/11/20/22/30/60 minutes grouped by type:
other: 1 1 1 1 1 1
2b0673e0dc4580674a88d426fe00ea90: 3 3 3 3 3 3
* 97b41c52301f77ce508f55e66d17620e: 4 4 4 4 4 4
Instagram responded with HTTP error "429 - Too Many Requests". Please
do not run multiple instances of Instaloader in parallel or within
short sequence. Also, do not use any Instagram App while Instaloader
is running.
The request will be retried in 655 seconds, at 23:04.