Library for scraping google search results
Library for scraping google search results.
from googlesearch.googlesearch import GoogleSearch response = GoogleSearch().search("something") for result in response.results: print("Title: " + result.title) print("Content: " + result.getText())
Free software: MIT license
Run a Google search and fetch the individual results (full HTML and text contents). By default the result URLs are fetched eagerly when the search request is made with 10 parallel requests. Fetching can be deferred until searchResult.getText() or getMarkup() are called by passing prefetch_results = False to the search method.
Pass num_results to the search method to set the maximum number of results.
SearchReponse.total gives the total number of results on Google.
- First release on PyPI.
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
|Filename, size||File type||Python version||Upload date||Hashes|
|Filename, size google_search-1.1.1-py2.py3-none-any.whl (6.5 kB)||File type Wheel||Python version py2.py3||Upload date||Hashes View|
|Filename, size google-search-1.1.1.tar.gz (16.1 kB)||File type Source||Python version None||Upload date||Hashes View|
Hashes for google_search-1.1.1-py2.py3-none-any.whl