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

Query Endpoint Error #17

Closed
TaylorThiessen opened this issue Aug 3, 2024 · 6 comments · Fixed by #22
Closed

Query Endpoint Error #17

TaylorThiessen opened this issue Aug 3, 2024 · 6 comments · Fixed by #22

Comments

@TaylorThiessen
Copy link

The query endpoint responds with the following error:

screencapture-hltb-proxy-fly-dev-v1-query-2024-08-02-22_53_10

Example: https://hltb-proxy.fly.dev/v1/query?title=Edna

@DareFox
Copy link
Owner

DareFox commented Aug 6, 2024

Fixed in #18

@DareFox DareFox closed this as completed Aug 6, 2024
@TaylorThiessen
Copy link
Author

The error is back

@DareFox
Copy link
Owner

DareFox commented Aug 8, 2024

It seems that site changes search URL every day to prevent scraping. I'll will hotfix it for now, but in the future, I'll need to find a more automated approach for this problem

@DareFox DareFox reopened this Aug 8, 2024
DareFox added a commit that referenced this issue Aug 8, 2024
DareFox added a commit that referenced this issue Aug 8, 2024
DareFox added a commit that referenced this issue Aug 9, 2024
DareFox added a commit that referenced this issue Aug 9, 2024
@ClassicSpeed
Copy link

ClassicSpeed commented Sep 6, 2024

I think the error is back

DareFox added a commit that referenced this issue Sep 15, 2024
* fix: Update search URL

#17

* chore: Update gradle, kotlin and dependencies

* fix: Deprecated fields because they were removed from search
@JunkiEDM
Copy link

JunkiEDM commented Sep 21, 2024

Here are what fixes other repos made, in case it helps:
ScrappyCocco/HowLongToBeat-PythonAPI#26
ckatzorke/howlongtobeat#64

Looks like they're getting the search api key dynamically by matching /"\/api\/search\/".concat\("([a-zA-Z0-9]+)"\)/g on the scripts on https://howlongtobeat.com/

DareFox added a commit that referenced this issue Oct 10, 2024
DareFox added a commit that referenced this issue Oct 10, 2024
DareFox added a commit that referenced this issue Oct 10, 2024
@DareFox
Copy link
Owner

DareFox commented Oct 10, 2024

Here are what fixes other repos made, in case it helps: ScrappyCocco/HowLongToBeat-PythonAPI#26 ckatzorke/howlongtobeat#64

Looks like they're getting the search api key dynamically by matching /"\/api\/search\/".concat\("([a-zA-Z0-9]+)"\)/g on the scripts on https://howlongtobeat.com/

Thanks for this info! Based on this I implemented auto scraping search key for proxy, now search should work even if HLTB will change key

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

Successfully merging a pull request may close this issue.

4 participants