Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Instagram is completely broken #1122

Closed
KilliK69 opened this issue Nov 18, 2020 · 3 comments
Closed

Instagram is completely broken #1122

KilliK69 opened this issue Nov 18, 2020 · 3 comments

Comments

@KilliK69
Copy link

KilliK69 commented Nov 18, 2020

Hello.
Yesterday I downloaded from IG with no problems, but today when I tried again, I got a lot of errors instead.
I am using the latest version of youtube-dl. I login using my credentials and the cookies.txt. I also tried without login. the download fails in both instances.
I am using the latest version 1.15.3

here is the first part of the log, I have uploaded the entire file.

[gallery-dl][debug] Version 1.15.3
[gallery-dl][debug] Python 3.7.9 - Windows-10-10.0.18362
[gallery-dl][debug] requests 2.24.0 - urllib3 1.25.11
[gallery-dl][debug] Starting DownloadJob for 'https://www.instagram.com/westyd/'
[instagram][debug] Using InstagramUserExtractor for 'https://www.instagram.com/westyd/'
[urllib3.connectionpool][debug] Starting new HTTPS connection (1): www.instagram.com:443
[urllib3.connectionpool][debug] https://www.instagram.com:443 "GET /westyd/ HTTP/1.1" 200 57547
[urllib3.connectionpool][debug] https://www.instagram.com:443 "GET /p/CHtcGimFlcv/?__a=1 HTTP/1.1" 302 0
[urllib3.connectionpool][debug] https://www.instagram.com:443 "GET /accounts/login/ HTTP/1.1" 200 12589
[instagram][warning] Unable to fetch data from 'https://www.instagram.com/p/CHtcGimFlcv/':  JSONDecodeError: Expecting value: line 1 column 1 (char 0)
[instagram][debug] Server response: <!DOCTYPE html>
<html lang="en" class="no-js not-logged-in client-root">
    <head>
        <meta charset="utf-8">
        <meta http-equiv="X-UA-Compatible" content="IE=edge">

        <title>
Login • Instagram
</title>

Log_Gallery-dl_Instagram.txt

@hellupline
Copy link
Contributor

hellupline commented Nov 27, 2020

instagram blocked your IP address, they return this login html when it happens
EDIT: they blocked you for anonymous access ( logged still works, but they may lcok your account then )

@left1000
Copy link

I got my account locked as well, it seems instagram can detect gallery-dl as suspicious activity and then lock the account. My guess is by making too many requests in too short a time.

mikf added a commit that referenced this issue Dec 3, 2020
(#1113, #1122, #1128, #1130, #1149)

Rely on the results of GraphQL queries instead of requesting data
for each post separately via '/p/<shortcode>/?__a=1'.

This might result in some missing metadata, and there might be some
issues for '/channel/' and '/saved/' URLs, but at least downloading
from the regular post listings should work without issues and without
getting users blocked/banned.

TODO: reimplement support for stories
@mikf
Copy link
Owner

mikf commented Dec 3, 2020

Should be fixed with 447488f (See #1149 (comment))

@mikf mikf closed this as completed Dec 3, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants