subzeroid / instagrapi

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

Story Download #1402

Closed sajjadsabzkar closed 9 months ago

sajjadsabzkar commented 1 year ago

Hi there ! i use this code to download all stories from user id

stories = cl.user_stories(user_id)
for story in stories :
        cl.story_download_by_url(story.pk,folder='stories/')

and then this error acuired

requests.exceptions.ConnectionError: HTTPSConnectionPool(host='scontent-dfw5-2.cdninstagram.com', port=443): Read timed out.
adw0rd commented 1 year ago

story_download_by_url required url, not pk

https://adw0rd.github.io/instagrapi/usage-guide/story.html