Download the PHP package cviniciussdias/google-crawler without Composer
On this page you can find all versions of the php package cviniciussdias/google-crawler. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download cviniciussdias/google-crawler
More information about cviniciussdias/google-crawler
Files in cviniciussdias/google-crawler
Package google-crawler
Short Description A simple Crawler for getting Google results
License GPL-3.0
Informations about the package google-crawler
Google Crawler
A simple Crawler for getting Google results.
This component can be used to retrieve the 100 first results for a search term.
Since google detects a crawler and blocks the IP when several requests are made, this component is prepared to use some online proxy services, such as hide.me.
Installation
Install the latest version with
Usage
Crawler class constructor prototype
Parameters
- $searchTerm Term that will be searched on Google
- $proxy Online proxy service that will be used to access Google [optional]
- $googleDomain Your country specific google domain, like google.de, google.com.br, etc. [optional]
- $countryCode Country code that will be added to
gl
parameter on Google's url, indicating the location of the search. E.g. 'BR', 'US', 'DE' [optional]
Examples
Without proxy
With some proxy
More details on proxies
To know more details about which proxies are currently
supported, see the files inside tests/Functional
folder.
There you'll see all the available proxies.
Iterating over results
About
Requirements
- This component works with PHP 7.2 or above
- This component requires the extension php-ds to be installed
Author
Vinicius Dias (ZCE) - [email protected] - https://github.com/CViniciusSDias/ - http://www.zend.com/en/yellow-pages/ZEND030134
License
This component is licensed under the GPL v3.0 License - see the LICENSE
file for details
All versions of google-crawler with dependencies
guzzlehttp/guzzle Version ^6.3
symfony/dom-crawler Version ^4.2
ext-ds Version *
ext-dom Version *