-
Notifications
You must be signed in to change notification settings - Fork 6
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
August 2024 no longer returning data from HowLongToBeat.com #25
Comments
Hello and thank you for the Issue @yipidee The library is (at least temporarily) fixed on howlongtobeatpy 1.0.6 It looks like the search url changed from This code looks like a hash of some kind but I investigated just a little and it doesn't looks like it's user-generated This need to be checked so I'm going to leave the issue on hold for a while |
Issue fixed in 1.0.6 |
Had the same issue today and 1.0.6 fixed it right away. Looks good! Thank you. |
Looks like it got updated again, the search guid is now "ac8bb4dd1834c9056f6f6a0294fdb1b4" |
Ok so it changes every now and then and it can't be hardcoded like that, it must be read somewhere from the website like the browser does |
Also that /search/key looks like to be generated or loaded inside a js like https://howlongtobeat.com/_next/static/chunks/pages/_app-dbc6a57c887f99a6.js that doesn't seems stable url to read it, so a solution is not immediate either |
I'm doing some tests in this branch https://github.com/ScrappyCocco/HowLongToBeat-PythonAPI/tree/FetchApiKey (PR #25) reading the api key from the website and it looks like it works fine, could publish a new version soon |
All tests are green, version 1.0.7 fetch the api key from the website so it could be a bit slower but should work fine for a longer time (hopefully) I used a new method to publish the package on pypi so if there are problems please let me know |
Discussed in #24
Originally posted by yipidee August 2, 2024
I've been using howlongtobeatpy in a script with no problems for some time now, but suddenly it has started returning "None" for any search term. HowLongToBeat is up and running, has the API been broken by some change?
The text was updated successfully, but these errors were encountered: