D
D
Dmitriy2019-08-24 16:59:07
PHP
Dmitriy, 2019-08-24 16:59:07

How to parse the price from this block?

https://www.binance.com/ru/trade/ZEC_BTC
You need to parse this block from this site
5d61427105375336584404.jpeg
My code:

$curl = new Curl();

  $res = $curl->get('http://www.binance.com/ru/trade/ZEC_BTC');
  $doc = phpQuery::newDocument($res->body);
  $block = $doc->find('div.sc-62mpio-0.sc-1yysggs-0.eAYkFo');

  echo $block;

Parses the block, but does not parse the price in dollars. How to parse her?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
P
planc, 2019-08-24
@dmitriyuvin

https://www.binance.com/api/v1/depth?limit=500&sym...
have fun with json

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question