-
-
Notifications
You must be signed in to change notification settings - Fork 975
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
insta dl returning json error #2543
Comments
Works for me: $ gallery-dl https://www.instagram.com/p/CcK2B2FJIZf/?igshid=YmMyMTA2M2Y=%22%60
/tmp/instagram/dark.shadows.before.u/2813298538545710687.jpg
Never mind that, you got redirected to a "challenge" page, probably some sort of captcha: You can try opening this URL in a browser and solving the challenge, whatever it is. |
Yea instagram added captcha verification for my acc sorry my bad |
[gallery-dl][debug] Version 1.21.2
[gallery-dl][debug] Python 3.9.10 - Linux-4.4.0-1101-aws-x86_64-with-glibc2.31
[gallery-dl][debug] requests 2.26.0 - urllib3 1.26.9
[gallery-dl][debug] Starting DownloadJob for 'https://www.instagram.com/p/CcK2B2FJIZf/?igshid=YmMyMTA2M2Y='
[instagram][debug] Using InstagramPostExtractor for 'https://www.instagram.com/p/CcK2B2FJIZf/?igshid=YmMyMTA2M2Y='
[urllib3.connectionpool][debug] Starting new HTTPS connection (1): www.instagram.com:443
[urllib3.connectionpool][debug] https://www.instagram.com:443 "GET /graphql/query/?query_hash=2efa04f61586458cef44441f474eee7c&variables=%7B%22shortcode%22%3A+%22CcK2B2FJIZf%22%2C+%22child_comment_count%22%3A+3%2C+%22fetch_comment_count%22%3A+40%2C+%22parent_comment_count%22%3A+24%2C+%22has_threaded_comments%22%3A+true%7D HTTP/1.1" 302 0
[urllib3.connectionpool][debug] https://www.instagram.com:443 "GET /challenge/?next=/graphql/query/%253Fquery_hash%253D2efa04f61586458cef44441f474eee7c%2526variables%253D%25257B%252522shortcode%252522%25253A%252B%252522CcK2B2FJIZf%252522%25252C%252B%252522child_comment_count%252522%25253A%252B3%25252C%252B%252522fetch_comment_count%252522%25253A%252B40%25252C%252B%252522parent_comment_count%252522%25253A%252B24%25252C%252B%252522has_threaded_comments%252522%25253A%252Btrue%25257D HTTP/1.1" 200 29790
[instagram][error] An unexpected error occurred: JSONDecodeError - Expecting value: line 1 column 1 (char 0). Please run gallery-dl again with the --verbose flag, copy its output and report this issue on https://github.com/mikf/gallery-dl/issues .
[instagram][debug]
Traceback (most recent call last):
File "/app/.heroku/python/lib/python3.9/site-packages/gallery_dl/job.py", line 76, in run
for msg in extractor:
File "/app/.heroku/python/lib/python3.9/site-packages/gallery_dl/extractor/instagram.py", line 49, in items
for post in self.posts():
File "/app/.heroku/python/lib/python3.9/site-packages/gallery_dl/extractor/instagram.py", line 692, in posts
data = self._request_graphql(query_hash, variables)
File "/app/.heroku/python/lib/python3.9/site-packages/gallery_dl/extractor/instagram.py", line 123, in _request_graphql
return self.request(
File "/app/.heroku/python/lib/python3.9/site-packages/requests/models.py", line 910, in json
return complexjson.loads(self.text, **kwargs)
File "/app/.heroku/python/lib/python3.9/site-packages/simplejson/init.py", line 525, in loads
return _default_decoder.decode(s)
File "/app/.heroku/python/lib/python3.9/site-packages/simplejson/decoder.py", line 370, in decode
obj, end = self.raw_decode(s)
File "/app/.heroku/python/lib/python3.9/site-packages/simplejson/decoder.py", line 400, in raw_decode
return self.scan_once(s, idx=_w(s, idx).end())
simplejson.errors.JSONDecodeError: Expecting value: line 1 column 1 (char 0)
my code is
galler-dl -u "my username here
-p "pass here" "https://www.instagram.com/p/CcK2B2FJIZf/?igshid=YmMyMTA2M2Y="`please if anyone could help with this
The text was updated successfully, but these errors were encountered: