subzeroid / instagrapi

🔥 The fastest and powerful Python library for Instagram Private API 2024
https://hikerapi.com/p/bkXQlaVe
MIT License
4.21k stars 667 forks source link

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

Open florifull opened 5 months ago

florifull commented 5 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 6 days ago

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

Client(request_timeout=7)