Answer the question
In order to leave comments, you need to log in
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
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;
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question