mikf / gallery-dl

Command-line program to download image galleries and collections from several image hosting sites
GNU General Public License v2.0
11.9k stars 976 forks source link

[instagram][error] HttpError: '429 Too Many Requests' - Date: 2022/05/13 #2587

Closed vrbacani closed 2 years ago

vrbacani commented 2 years ago

instagram outputs a 429 error when:

  1. downloading stories from an account with no story [it works when there is a story]
  2. downloading posts

Here is the verbose output:

When downloading stories from an account with no story:

$ gallery-dl www.instagram.com/linustech/ -o "include"="stories" -v [gallery-dl][debug] Version 1.21.2 [gallery-dl][debug] Python 3.9.2 - Linux-5.14.0-4mx-amd64-x86_64-with-glibc2.31 [gallery-dl][debug] requests 2.25.1 - urllib3 1.26.2 [gallery-dl][debug] Starting DownloadJob for 'www.instagram.com/linustech/' [instagram][debug] Using InstagramUserExtractor for 'www.instagram.com/linustech/' [instagram][debug] Using InstagramStoriesExtractor for 'https://www.instagram.com/stories/linustech/' [urllib3.connectionpool][debug] Starting new HTTPS connection (1): www.instagram.com:443 [urllib3.connectionpool][debug] https://www.instagram.com:443 "GET /stories/linustech/ HTTP/1.1" 302 0 [urllib3.connectionpool][debug] https://www.instagram.com:443 "GET /linustech HTTP/1.1" 301 0 [urllib3.connectionpool][debug] https://www.instagram.com:443 "GET /linustech/ HTTP/1.1" 429 20688 [instagram][debug] '429 Too Many Requests' for 'https://www.instagram.com/stories/linustech/' (1/2) [urllib3.connectionpool][debug] https://www.instagram.com:443 "GET /stories/linustech/ HTTP/1.1" 302 0 [urllib3.connectionpool][debug] https://www.instagram.com:443 "GET /linustech HTTP/1.1" 301 0 [urllib3.connectionpool][debug] https://www.instagram.com:443 "GET /linustech/ HTTP/1.1" 429 20688 [instagram][debug] '429 Too Many Requests' for 'https://www.instagram.com/stories/linustech/' (2/2) [instagram][error] HttpError: '429 Too Many Requests' for 'https://www.instagram.com/stories/linustech/'

When downloading posts:

$ gallery-dl www.instagram.com/linustech/ -o "include"="posts" -o "skip"="abort:2" -v [gallery-dl][debug] Version 1.21.2 [gallery-dl][debug] Python 3.9.2 - Linux-5.14.0-4mx-amd64-x86_64-with-glibc2.31 [gallery-dl][debug] requests 2.25.1 - urllib3 1.26.2 [gallery-dl][debug] Starting DownloadJob for 'www.instagram.com/linustech/' [instagram][debug] Using InstagramUserExtractor for 'www.instagram.com/linustech/' [instagram][debug] Using InstagramPostsExtractor for 'https://www.instagram.com/linustech/posts/' [urllib3.connectionpool][debug] Starting new HTTPS connection (1): www.instagram.com:443 [urllib3.connectionpool][debug] https://www.instagram.com:443 "GET /linustech/ HTTP/1.1" 429 20688 [instagram][debug] '429 Too Many Requests' for 'https://www.instagram.com/linustech/' (1/2) [urllib3.connectionpool][debug] https://www.instagram.com:443 "GET /linustech/ HTTP/1.1" 429 20688 [instagram][debug] '429 Too Many Requests' for 'https://www.instagram.com/linustech/' (2/2) [instagram][error] HttpError: '429 Too Many Requests' for 'https://www.instagram.com/linustech/'

This error started showing up yesterday (2022/05/13).

Does anyone have the same error or is it just me?

Thank you!

dajotim937 commented 2 years ago

Yes, it just you. This is server side restriction from instagram to prevent, as error says, to many requests from one account\user\devices. You can't download 24/7 from instagram. Search any other issues about that error and\or locked\banned account because of that.

vrbacani commented 2 years ago

The curious thing is why it works on those with stories and not on those without.

I did received a suspicious activity notice from instagram later that night. But all works now.