V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
V2EX 提问指南
ostrichb
V2EX  ›  问与答

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

  •  
  •   ostrichb · 2021-07-09 14:00:26 +08:00 via Android · 1152 次点击
    这是一个创建于 993 天前的主题,其中的信息可能已经有所发展或是发生改变。

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

    3 条回复    2021-07-11 13:40:49 +08:00
    winnerczwx
        1
    winnerczwx  
       2021-07-09 16:11:31 +08:00
    用爬虫+代理 ip 是可行的

    如有爬虫相关需求, 请联系我: Y3oxNTk0MjAxMTM=
    xyx0826
        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
    ostrichb
        3
    ostrichb  
    OP
       2021-07-11 13:40:49 +08:00 via Android
    @xyx0826 十分感谢,我不是很懂 C# 找到了一个类似的 pysteamkit 之类的研究下
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   1530 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 26ms · UTC 17:07 · PVG 01:07 · LAX 10:07 · JFK 13:07
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.