本人最近想开发一个统计单个用户游戏总大小的网站,在 steam 游戏大小获取上遇到了这个问题。steamdb 上有个叫做 depots 的东西,但是由于 steamdb 上没有相关的 api,不太知道怎么抓(用爬虫规避 5 秒锁不知道行不行)目前想到一个办法是用 re 去处理游戏英文介绍页面中 system requirements 提供的 storage 的约估值,还有什么更好的办法吗
1
winnerczwx 2021-07-09 16:11:31 +08:00
用爬虫+代理 ip 是可行的
如有爬虫相关需求, 请联系我: Y3oxNTk0MjAxMTM= |
2
xyx0826 2021-07-11 10:08:41 +08:00
非常不建议爬取 SteamDB 。以下是官方解释:
> We believe if you need to get Steam data, you can get it from Steam directly using their WebAPI or using libraries like SteamKit (see above). > > SteamDB is a community website and we do not make money, and maintaining the site is already enough work for us. Creating a good API is a lot of work and a big vector for abuse which we are not equipped to deal with. 请使用 SteamKit 库来从 Steam 直接获取这类信息。这个字段可能对你有用: https://github.com/SteamRE/SteamKit/blob/12d90d60ba613c2c7139662252ae9980eb959a62/SteamKit2/SteamKit2/Types/DepotManifest.cs#L147 |