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

IMDB removed ajax #29

Open
2ge opened this issue Sep 24, 2023 · 0 comments
Open

IMDB removed ajax #29

2ge opened this issue Sep 24, 2023 · 0 comments

Comments

@2ge
Copy link

2ge commented Sep 24, 2023

https://www.imdb.com/title/tt5247622/episodes/_ajax?season=1

this doesnt work anymore, also scraping html is only good for first 50 episodes, then they use GraphQL with calculated hash like this:

curl 'https://caching.graphql.imdb.com/?operationName=TitleEpisodesSubPagePagination&variables=%7B%22after%22%3A%22dHQxMTA2NzY5Ng%3D%3D%22%2C%22const%22%3A%22tt5247622%22%2C%22filter%22%3A%7B%22includeSeasons%22%3A%5B%221%22%5D%7D%2C%22first%22%3A50%2C%22locale%22%3A%22en-GB%22%2C%22originalTitleText%22%3Afalse%2C%22returnUrl%22%3A%22https%3A%2F%2Fwww.imdb.com%2Fclose_me%22%7D&extensions=%7B%22persistedQuery%22%3A%7B%22sha256Hash%22%3A%22ecdbd1a3df08b6a3903b16662bc636e6cbaf6a6e4fcbf64496ab4da46b8038e2%22%2C%22version%22%3A1%7D%7D' \
  -H 'content-type: application/json' \
  --compressed

if you know how to calculate that hash would be good

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

1 participant