subzeroid / instagrapi

🔥 The fastest and powerful Python library for Instagram Private API 2024 with HikerAPI SaaS
https://hikerapi.com/p/bkXQlaVe
MIT License
4.41k stars 691 forks source link

[BUG] HTTPSConnectionPool(host='scontent-mia3-1.cdninstagram.com', port=443) #1871

Open florifull opened 7 months ago

florifull commented 7 months ago

Hi all, got this error when using my python script I made this last summer for scraping off IG. Not sure why I'm getting this error as the bot used to always work with the exact same code.

This error happens after my bot has scraped around 30+ posts:

HTTPSConnectionPool(host='scontent-mia3-1.cdninstagram.com', port=443): Read timed out. (read timeout=1)

not-matthias commented 2 months ago

Had a similar issue and managed to fix it by setting the read_timeout in the Client:

Client(request_timeout=7)