PHP code example of reinaldo / aspnet-goutte-client
1. Go to this page and download the library: Download reinaldo/aspnet-goutte-client library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
reinaldo / aspnet-goutte-client example snippets
$uri = 'http://b3.php.loc/scrapper/tests/fixtures/http/responses/GET/busca-empresa-listada.html';
$formParams = [];
$files = [];
$headers = [];
$crawler = $client->request("GET", $uri, $formParams, $files, $headers);
$listCrawler = $client->eventSubmit('[value="Todas"]');
//this will submit aspnet form with __EVENTTARGET of button [value="Todas"]