fawziyahfitwalla / dmcc
DMCC Technical Test
Installs: 3
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
Type:project
Requires
- simplehtmldom/simplehtmldom: dev-master
This package is not auto-updated.
Last update: 2024-04-23 19:05:41 UTC
README
This PHP package allows you to scrape and parse Google Search Results.Package does not use or require GoogleAPIs integration.
Installation
You can install the package with the composer
$ composer require fawziyahfitwalla/dmcc
Example usage:
$client = new SearchEngine();
$client->setEngine("google.ae");
$results = $client->search(["keyword1","keyword2"]);
Example output:
The $results should is an instance of ArrayIterator with the following properties
-
keyword being searched
-
ranking (where the result was found on the search engine, the topmost result would be 0 and the last would be 50 (results per page x 5)
-
url of the page (as it appears in google search)
-
title of the page (as it appears in google search)
-
description (as it appears in google search)
-
promoted This is a boolean value indicating whether the result is an ad or organic result