Awesome Google Search PHP using Python binary simple script.
Here're some of the project's best features:
- Simple to use
- Less risk of getting captcha
- You can customize the search result item total
- Want to set the language specification of the search results? certainly can
1. Install using Composer
composer require ihsandevs/php-google-search
To use it, just call Ihsandevs\PhpGoogleSearch\Search
class.
Example:
<?php
require_once __DIR__ . '/vendor/autoload.php';
use Ihsandevs\PhpGoogleSearch\Search;
$query = "Something"; // Query to search
$lang = "ID" // Locale code for language of search result (default: en)
$total_result = 10; // Total result item (default: 10)
$google_search = new Search($query, $lang, $total_result);
$results = $google_search->getResult(); // done
Technologies used in the project:
- Python
- PHP
Like this library? Just star this repository.