【发布时间】:2016-06-30 04:52:38
【问题描述】:
我正在尝试从这个情节中获取蒸汽市场的数据:
我正在尝试使用此网址获取此数据
http://steamcommunity.com/market/pricehistory/?appid=730&market_hash_name=AK-47%20%7C%20Frontside%20Misty%20%28Field-Tested%29
根据 Steam 市场页面中的 Economy.js 文件
new Ajax.Request( 'http://steamcommunity.com/market/pricehistory/', {
method: 'get',
parameters: {
appid: this.m_item.appid,
market_hash_name: GetMarketHashName( this.m_item )
},
onSuccess: function( transport ) { SellItemDialog.OnPriceHistorySuccess( transport ); },
onFailure: function( transport ) { SellItemDialog.OnPriceHistoryFailure( transport ); }
} );
但是当尝试在我的浏览器中打开 http://steamcommunity.com/market/pricehistory/?appid=730&market_hash_name=AK-47%20%7C%20Frontside%20Misty%20%28Field-Tested%29 时,我总是得到空 [] 结果。
另一方面,当我在浏览器中登录我的帐户时,结果不是空的,一切都很好。 但是这个情节总是可以在我的http://steamcommunity.com/market/listings/730/AK-47%20%7C%20Frontside%20Misty%20%28Field-Tested%29页面上找到,不管我是否在我的帐户中。
如何在不经过身份验证的情况下正确获取这些数据?
【问题讨论】: