Answer the question
In order to leave comments, you need to log in
Why is this site https://vstup.edbo.gov.ua/offer/538114/ not parsing?
<?php
require('phpQuery/phpQuery.php');
require('curl.php');
require('simple_html_dom.php');
$curl = new Curl();
$res = $curl->get('https://vstup.edbo.gov.ua/offer/538114/');
$doc = phpQuery::newDocument($res->body);
$offers = $doc->find('div.offer-request');
echo $doc;
foreach ($offers as $offer)
{
$pq = pq($offer);
$number = $pq->find('.offer-request-n span')->text();
}
?>
Answer the question
In order to leave comments, you need to log in
they do not exist at the time of page loading, they are loaded later
view-source: https://vstup.edbo.gov.ua/offer/538114/
(I wonder if it will work to insert such a link)
but it may come out to make a POST and get an array right away with data without parsing (see developer console)
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question