PHP code example of cviniciussdias / google-crawler
1. Go to this page and download the library: Download cviniciussdias/google-crawler 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/ */
cviniciussdias / google-crawler example snippets
use CViniciusSDias\GoogleCrawler\{
Crawler, SearchTerm
};
$searchTerm = new SearchTerm('Test');
$crawler = new Crawler($searchTerm); // or new Crawler($searchTerm, new NoProxy());
$resultList = $crawler->getResults();
use CViniciusSDias\GoogleCrawler\{
Crawler, SearchTerm, Proxy\CommonProxy
};
$searchTerm = new SearchTerm('Test');
$commonProxy = new CommonProxy('https://us.hideproxy.me/