D
D
dimavfox2019-07-20 00:10:50
Parsing
dimavfox, 2019-07-20 00:10:50

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();
  }


?>

I write echo $doc;
And it does not display applicants' applications.
Is this related to the site or am I doing something wrong?
clarify please

Answer the question

In order to leave comments, you need to log in

1 answer(s)
H
hzzzzl, 2019-07-20
@hzzzzl

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)
5d3233407e4fb797929382.png

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question