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 Hashtag #1130

Closed
kafeh opened this issue Nov 24, 2020 · 1 comment
Closed

Instagram Hashtag #1130

kafeh opened this issue Nov 24, 2020 · 1 comment

Comments

@kafeh
Copy link

kafeh commented Nov 24, 2020

Can someone help me? I'm trying to use gallery-dl with instagram hashtag like this:

gallery-dl "https://www.instagram.com/explore/tags/testfafa2" --range 1-10

also tried with login info:
gallery-dl "https://www.instagram.com/explore/tags/testfafa2" --range 1-10 -u "USERNAME" -p "PASSWORD"

but I always get this error

_[instagram][error] An unexpected error occurred: KeyError - 'TagPage'.

[instagram][error] An unexpected error occurred: KeyError - 'TagPage'. 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 "..python\python37\lib\site-packages\gallery_dl\job.py", line 67, in run
for msg in self.extractor:
File "..\python\python37\lib\site-packages\gallery_dl\extractor\instagram.py", line 44, in items
for data in self.instagrams():
File "..\python\python37\lib\site-packages\gallery_dl\extractor\instagram.py", line 301, in extract_page
base_shared_data = entry_data[psdf['page']][0]['graphql']
KeyError: 'TagPage'

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 18, 2020

This should be fixed in version 1.16.0

@mikf mikf closed this as completed Dec 18, 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

2 participants