I
I
ifaceman2016-10-07 09:52:09
JavaScript
ifaceman, 2016-10-07 09:52:09

How to parse a product page in the steam marketplace?

Good day to all!
I'm trying to parse data from product price charts on the steam marketplace on pages like https://steamcommunity.com/market/listings/730/Gam...
These charts look like this:
0047c35fac894634beeb4d78df3ff495.JPG
I didn't find the source data for these numbers on the page itself. They appear when you hover over a graph point:
977bacab8e764b38860fed5f735a0ac8.JPG
At this point, I don't see any json to request this data.
There is a suspicion that these prices are calculated depending on the coordinates of the point. Even so, it is not clear how the number of purchases at this point is calculated.
Maybe someone will point where to dig?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
A
Alexander Semchenko, 2016-10-08
@ifaceman

How to parse a product page in the steam marketplace?

It's as easy as sending 2 bytes.
You need to dig here
1. graph
new Ajax.Request( 'https://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 ); }
    } );

2. chart
https://steamcommunity.com/market/itemordershistog...

R
Robot Chappie, 2016-10-07
@BenderLib

На Сколько я понимаю данные берутся из передаваемого через xhr объекта через некий промежуток времени,
Вот скриншот joxi.ru/Vm6k5ndtxBny72

A
asmrnv777, 2018-06-12
@asmrnv777

Если кому нужен конкретный запрос, то вот он: пример

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question