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
Getting 404 when trying to scrape hashtag #2144
Comments
Also happens with the cli.
Also happens with older versions of instaloader that used to work. Maybe it's related to the instagram app and web interface now only showing top posts for each tag? For example https://www.instagram.com/explore/tags/foodie/ only shows 28 posts, despite clearly stating that 249,155,265 exist. |
Actually in the app you still get an infinite scrolling version, it's only the web version that limits the number of posts visible. So there has to be an API somewhere that still returns the information we seek. |
Looking at the code, it seems instaloader puts {"__a": 1, "__d": "dis"} in the payload. However, on 4 October 2023 on StackOverflow it was suggested that a solution should also contain a |
I'm not sure whether this is exactly what you need, but when you search for the tags on instagram in your browser it returns a json with 'next_max_id' in it. So, what you can do is go to https://www.instagram.com/explore/tags/{your tag}, open the inspector, check for network and find get request to https://www.instagram.com/api/v1/tags/web_info/?tag_name={your tag} which returns json file. Within this file look for 'data' -> 'top' -> 'next_max_id'. As an alternative, you can try the method offered by Daniel Choi (comment made on 8th April, 2018) in the StackOverflow link that you provided, where you define 'id' as 17875800862117404 and 'after' = next_max_id. I hope this can solve the problem |
I have tried making a request to https://www.instagram.com/api/v1/tags/web_info/?tag_name=anime but it gives me this error: I don't know what I am doing wrong. |
Is this solved ?, I am getting the same problem |
+1 Getting same error. |
+1 getting also the error |
+1 also getting the error, can't find any workaround |
same here. :( |
Me too |
I keep getting this same error as well with different hashtags, login done with cookies file, a domestic connection and a user agent |
@Ghodawalaaman you should run this code using the source code from instaloader and replace the url in from_username, but in order to do this, you need to login which may be blocked by Ins if you try many times |
Today i have this same problem :c |
having the same problem too |
same problem too |
Describe the bug
I get
JSON Query to explore/tags/foodie/: 404 Not Found [retrying; skip with ^C]
when I try to scrape a hashtag.Clearly, the https://www.instagram.com/explore/tags/foodie/ is a normal lively hashtag.
I've also tried other hashtags and get the same error.
To Reproduce
Expected behavior
I'd like to iterate over
h.get_posts_resumable()
Error messages and tracebacks
Instaloader version
4.10.2
The text was updated successfully, but these errors were encountered: