A simple demonstration of scraping capabilities of PHP to fetch top results from Google, Bing and Quora.
Contains implementation of base class Search
to allow scraping and DOM parsing functionalities.
Contains Google oriented implementation for scraping title, description and url of the top results.
Contains Bing oriented implementation for scraping title, description and url of the top results.
Contains Quora oriented implementation for scraping question title and description of the top questions with the given search query.
Defines the type of search engine to use. It can take value of google
, bing
and quora
.
Defines the number of results to be scraped. It can only scrape content from first page only.
Defines the search query terms