ZixeSea / SteamIdler

Light weight multi account steam idler, perfect for boosting playtime
MIT License
23 stars 5 forks source link

[Feature] Steam card farming #8

Open RedSparr0w opened 1 week ago

RedSparr0w commented 1 week ago

Add an idling option for steam card farming

Fall back to dynamic/static idling when not enough games to idle for cards?

ZixeSea commented 1 week ago

I don't think steam-user as any code that would let you view badge related information outside of badge level. So I don't see a way to get farmable card through steam-user. So probably need to find another way to get this info

RedSparr0w commented 6 days ago

Yeah, this can be done through https://github.com/DoctorMcKay/node-steamcommunity

Need to fetch the badges pages

community.httpRequest(`https://steamcommunity.com/my/badges/?p=${page}`

Then need to parse the HTML to find games with drops remaining and the AppID and pages remaining Also need to check if newly purchased (don't want to use up the 2 hours playtime if they may want to refund it)