puppylpg / oddish

Crawl csgo skin info from `buff.163.com` and steam, then find the most suitable one to buy from the former and to sell to the latter.
https://puppylpg.github.io/2019/12/07/python-crawler-buff-optimaze/
GNU General Public License v3.0
321 stars 80 forks source link

直接获取人民币的steam历史价格 #74

Closed mocap55551 closed 3 years ago

mocap55551 commented 3 years ago

建议描述

找到了一个网页,和您介绍里的一样,是人民币版的steam的price_history,您可以优化下改成直接获取人民币的数据,这样也不用去调汇率了,附上链接https://buff.163.com/api/market/goods/price_history?game=csgo&goods_id=759524&currency=CNY

puppylpg commented 3 years ago

多谢 不过这个我知道,一开始写代码的时候也是从buff上获取的steam历史售价,参见: https://github.com/puppylpg/oddish/blob/4eec549414f077cf83d95784b62ecfcf8cd65494/src/config/urls.py#L30-L31

后来换成从steam获取价格有其他一些考虑,参见 #11 还有一个原因是从steam上获取steam的历史售价更真实准确一些