有什么办法获取到在 Steam 上架游戏的大小吗

2021-07-09 14:00:26 +08:00
 ostrichb

本人最近想开发一个统计单个用户游戏总大小的网站,在 steam 游戏大小获取上遇到了这个问题。steamdb 上有个叫做 depots 的东西,但是由于 steamdb 上没有相关的 api,不太知道怎么抓(用爬虫规避 5 秒锁不知道行不行)目前想到一个办法是用 re 去处理游戏英文介绍页面中 system requirements 提供的 storage 的约估值,还有什么更好的办法吗

1198 次点击
所在节点    问与答
3 条回复
winnerczwx
2021-07-09 16:11:31 +08:00
用爬虫+代理 ip 是可行的

如有爬虫相关需求, 请联系我: Y3oxNTk0MjAxMTM=
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
ostrichb
2021-07-11 13:40:49 +08:00
@xyx0826 十分感谢,我不是很懂 C# 找到了一个类似的 pysteamkit 之类的研究下

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/788515

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX