Scott M. Sanders
Scott M. Sanders
https://github.com/FriendsOfPHP/Goutte/releases/download/v3.1.0/goutte-v3.1.0.phar
Set Goutte 2’s CURLOPT_SSL_VERIFYPEER to false, or search issues for other Goutte versions. ``` php $client->getClient()->setDefaultOption('config/curl/' . CURLOPT_SSL_VERIFYPEER, false); ```
Try wrapping your code in a try-catch statement. ```php try { if (checkOnline('http://www.metacritic.com/game/'.str_slug($console->nome_cat, '-').'/'.$giochi->slug)) { $client = new Client(); $crawler = $client->request( 'GET', 'http://www.metacritic.com/game/'.str_slug($console->nome_cat, '-').'/'.$giochi->slug ); $metacritic = $crawler->filterXPath('//*[@id="main"]/div/div[3]/div/div/div[2]/div[1]/div[1]/div/div/a/div/span')->html(); }...
If you just need the total count… ```php $h1 = $crawler->filter('h1')->each(function ($node) { return $node->text(); }); print count($h1); ``` If you want to print each increment… ```php $crawler->filter('h1')->each(function ($node) use...
``` php $crawler = $client->request('GET', 'http://website.com/'); $html = $crawler->html(); $html = str_replace("action=\"", "action=\"http://website.com/", $html); $html = str_replace("", "", $html); $crawler->add($html); $form = $crawler->selectButton('x')->form(); $crawler = $client->submit($form, array('username' => 'ssanders', 'password'...
``` php Fatal error: Class 'Symfony\Component\DomCrawler\FormFieldRegistry' not found in phar:///mnt/web/public_html/test/goutte.phar/vendor/symfony/dom-crawler/Symfony/Component/DomCrawler/Form.php on line 395 ```
My phar is fixed, so I tried your code on a similar form with this submit code: ``` php $crawler = $client->submit($form, array('__EVENTTARGET' => '_ctl0:Main:PageNavigatorTop:ButtonPageNext')); ``` But I got the...
100+ is a lot, yes. We now have 5.
It could keep the repos and their settings cached, then use the polling interval to see if it still errors. So when I “proceed anyway” to our GitLab, I needn’t...
No problem. You also need it when you call token.php: `curl -u testclient:testpass http://localhost/token.php -d 'grant_type=authorization_code&code=YOUR_CODE%redirect_url=http://fake/`