ostrichb
V2EX  ›  问与答

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

  •  
  •   ostrichb · Jul 9, 2021 via Android · 2220 views
    This topic created in 1781 days ago, the information mentioned may be changed or developed.

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

    3 replies    2021-07-11 13:40:49 +08:00
    winnerczwx
        1
    winnerczwx  
       Jul 9, 2021
    用爬虫+代理 ip 是可行的

    如有爬虫相关需求, 请联系我: Y3oxNTk0MjAxMTM=
    xyx0826
        2
    xyx0826  
       Jul 11, 2021
    非常不建议爬取 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
       Jul 11, 2021 via Android
    @xyx0826 十分感谢,我不是很懂 C# 找到了一个类似的 pysteamkit 之类的研究下
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   3184 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 32ms · UTC 13:54 · PVG 21:54 · LAX 06:54 · JFK 09:54
    ♥ Do have faith in what you're doing.