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

[REQUEST] Use the HowLongToBeat API to get playtime data insted of howlongtobeatsteam.com #147

Closed
hreffero opened this issue Jun 13, 2019 · 3 comments

Comments

@hreffero
Copy link

Use the HowLongToBeat API to get playtime data https://github.com/ckatzorke/howlongtobeat

The current code uses howlongtobeatsteam.com to get playtime data and there are several wrong sections, games are wrongly organized, and some of them have way off data.

HowLongToBeat.com is more precise and has more accurate current data available

@mendhak
Copy link

mendhak commented Aug 10, 2019

It looks like the current code uses the URL

https://www.howlongtobeatsteam.com/api/games/library/cached/all

and unfortunately that URL keeps erroring, while the Depressurizer code silently handles the error - presumably that URL fails frequently enough that it needed to be handled in this way.

string result = client.DownloadString(Constants.HowLongToBeat);
if (result.Contains("An error has occurred."))
{
return updated;
}

The ckatzorke/howlongtobeat API is an npm package, and this project is C# so it won't be easily usable.

However that npm package is an HTML scraper anyway. So it could be that with a bit of studying the scraping can be replicated. From some searching around the web this looks like the only way to get data off HLTB as they don't have an official API.

@Drexl
Copy link

Drexl commented Sep 19, 2019

Not sure if this is related, but in version 4.12.1.0 I'm trying to organize by HLTB and they all 929 games get tagged as unknown. This data clearly isn't getting scrapped correctly.

Edit: This is only happening when I provide a steam API key.

@mvegter
Copy link
Member

mvegter commented Jun 22, 2021

The howlongtobeatsteam.com API uses howlongtobeat.com, if you are experencing any issues please report them here: https://github.com/ohadschn/HowLongToBeatSteam

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

4 participants