phpQuery Web Scraping Event

1

I'm trying to get information from the php site using phpQuery, but I'm still learning how to use it.

The information I want to get appears in select but only after clicking it. Without clicking it returns only a <option value=""></option>

I would like to have a get the values with if I had clicked on select to appear other options.

<?php
require('phpQuery/phpQuery.php');

$pagina = 'http://veiculos.fipe.org.br/';

phpQuery::newDocumentFileHTML($pagina); // instanciando a classe com a variavel da url

echo '<h2>O conteudo do ID selectMarcacarro é</h2>';

$titleElement3 = pq('#selectMarcacarro'); // capturando elemento de ID deivison do documento test.html

echo '<p>' . htmlentities( $titleElement3->html() ) . '</p>'; // exibindo o resultado

Also, is there any easy way to do web scraping?

    
asked by anonymous 11.10.2017 / 16:07

0 answers