PHP Classes

Google CSE PHP Scrapper: Extract search results using Google CSE

Recommend this page to a friend!
  Info   View files Documentation   View files View files (10)   DownloadInstall with Composer Download .zip   Reputation   Support forum (2)   Blog    
Ratings Unique User Downloads Download Rankings
Not enough user ratingsTotal: 144 This week: 1All time: 9,146 This week: 560Up
Version License PHP version Categories
googlecsescrapper 1.0.0MIT/X Consortium ...5PHP 5, Searching, Web services
Description 

Author

This package can extract search results using Google CSE.

It can send HTTP requests to the Google CSE API Web server and extracts the results for a given search query.

The package can return results for Web pages or images with support for spelling correction and returning rich snippets.

Picture of Miraz Mac
  Performance   Level  
Name: Miraz Mac <contact>
Classes: 13 packages by
Country: Bangladesh Bangladesh
Age: 29
All time rank: 201629 in Bangladesh Bangladesh
Week rank: 51 Up1 in Bangladesh Bangladesh Up
Innovation award
Innovation award
Nominee: 5x

Documentation

GoogleCSEScrapper

Scrape Google Custom Search results with spelling correction and rich snippets

GoogleCSEScrapper is a scrapper for scrapping Google Custom Search results. Beside scrapping the search results it can even go deep and grab the spelling correction and rich snippet data. Currently it supports fetching Web and Image results.

Although I wouldn't recommend using it on Production but it can do it's job pretty well on medium/heavy requests unless you get your server IP banned by Google. But hey, Google's been a real jerk lately with their YouTube Data API v3. It's the least we can do, so lets fack on Google.

Install via Composer

composer require mirazmac/google-cse-scrapper

Usage

For usage example please check the usage folder.

License

GoogleCSEScrapper is licensed under, WTFPL - DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE

alt text


  Files folder image Files  
File Role Description
Files folder imagesrc (1 file, 1 directory)
Files folder imageusage (2 files)
Accessible without login Plain text file composer.json Data Auxiliary data
Accessible without login Plain text file LICENSE Lic. License text
Accessible without login Plain text file README.md Doc. Documentation

  Files folder image Files  /  src  
File Role Description
Files folder imageElement (4 files)
  Plain text file Scrapper.php Class Class source

  Files folder image Files  /  src  /  Element  
File Role Description
  Plain text file ElementBag.php Class Class source
  Plain text file ImageResultElement.php Class Class source
  Plain text file RichSnippetElement.php Class Class source
  Plain text file WebResultElement.php Class Class source

  Files folder image Files  /  usage  
File Role Description
  Accessible without login Plain text file image.php Example Example script
  Accessible without login Plain text file web.php Example Example script

 Version Control Unique User Downloads Download Rankings  
 100%
Total:144
This week:1
All time:9,146
This week:560Up
User Comments (1)