imperatrona / twitter-scraper

Scrape the Twitter frontend API without authentication with Golang.
MIT License
67 stars 8 forks source link

Updating the api code in GetTweetReplies #18

Open MrNomad123 opened 19 hours ago

MrNomad123 commented 19 hours ago

The endpoint in GetTweetReplies method is GET https://twitter.com/i/api/graphql/ldqoq5MmFHN1FhMGvzC9Jg/TweetDetail. This returns 404 to me. Upon inspecting in brower the request was made with a different code (in place of ldqoq5MmFHN1FhMGvzC9Jg). Do we know what decides the value of this code? Or at least I think we should make it configurable. I can do this...but I am new to golang and will take some time catching up.

imperatrona commented 18 hours ago

@MrNomad123 checked right now and endpoint works, this hash is id for specific revision of endpoint so if you change this hash to newer/older the response may be diffrently structured and wouldn't be parsed correctly. some endpoint hashes in this codebase is 2-3 years old and works perfectly twitter don't expire them

can you provide tweet url that you trying to fetch?

Screenshot 2024-09-28 at 15 23 34