PHP Classes
elePHPant
Icontem

Google_Query: Retrieve the count of results of Google query

Recommend this page to a friend!
  Info   View files View files (11)   DownloadInstall with Composer Download .zip   Reputation   Support forum   Blog    
Last Updated Ratings Unique User Downloads Download Rankings
2007-06-24 (9 years ago) RSS 2.0 feedStarStarStar 54%Total: 3,394 All time: 983 This week: 1,009Down
Version License PHP version Categories
google_query 1.0GNU General Publi...5.0Searching, Web services
Description Author

This class is meant to connect to Google and perform a query to Google.

The class lets you specify the query parameters as in the advanced search page of Google. Then it connects to Google site via HTTP and retrieves the contents of the results page.

The class also parses the results to obtain the number of occurrences found for the specified query.

The class requires PHP with TCP socket connection support enabled.

A bug has been fix : if google change it's result page design, results wasn't parse. To fix this problem, Google_AdvancedQuery class retrieve from a centralised location the valid detection pattern. you can update it according with your policy.
Class has been wrote back to php5 and zend coding standards.

Picture of MARY Matthieu
Name: MARY Matthieu <contact>
Classes: 19 packages by
Country: France, Metropolitan France, Metropolitan

  Files folder image Files  
File Role Description
Files folder imageCache (1 file)
Files folder imageGoogle (3 files)
Files folder imageTest (1 directory)
Files folder imageTestlaunchers (1 directory)
Accessible without login Plain text file Autoload.php Aux. loader
Accessible without login Plain text file class_google_example.php Example how to install and use this class
Accessible without login Plain text file LICENCE Lic. GPL copy

  Files folder image Files  /  Cache  
File Role Description
  Plain text file class_cache.php Class this class make the cache functions

  Files folder image Files  /  Google  
File Role Description
  Plain text file AdvancedQuery.php Class query which can updated result number design pattern
  Plain text file class_google.php Class class file
  Plain text file Query.php Class basic query class

  Files folder image Files  /  Test  
File Role Description
Files folder imageGoogle (2 files)

  Files folder image Files  /  Test  /  Google  
File Role Description
  Accessible without login Plain text file AdvancedQuery.php Test Unit test class for Google_AdvancedQuery
  Accessible without login Plain text file Query.php Test Unit test class for Google_Query

  Files folder image Files  /  Testlaunchers  
File Role Description
Files folder imageGoogle (2 files)

  Files folder image Files  /  Testlaunchers  /  Google  
File Role Description
  Accessible without login Plain text file AdvancedQuery.php Test Launch unit test case Test_Google_AdvancedQuery
  Accessible without login Plain text file Query.php Test Launch unit test case Test_Google_Query

 Version Control Unique User Downloads Download Rankings  
 0%
Total:3,394
This week:0
All time:983
This week:1,009Down
 User Ratings  
 
 All time
Utility:78%StarStarStarStar
Consistency:82%StarStarStarStarStar
Documentation:-
Examples:75%StarStarStarStar
Tests:-
Videos:-
Overall:54%StarStarStar
Rank:1654