google-search
Library for scraping google search results.
Usage:
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
Features
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.
Credits
This package was created with Cookiecutter and the audreyr/cookiecutter-pypackage project template.
Commit History @run/81e42f15-117e-4ed5-bb17-7e534160f2c2/main
- New upstream snapshot. Kali Janitor 1 year, 3 months ago
- Import upstream version 2.0.3+git20210326.1.e2d3e74 Kali Janitor 1 year, 3 months ago
- Remove template comment and switch spaces to tabs Ben Wilson 2 years ago
- Prepare for Release Sophie Brun 3 years ago
- Bump Standards-Version to 4.5.1 Sophie Brun 3 years ago
- Update debian/copyright Sophie Brun 3 years ago
- New upstream version 2.0.3 Sophie Brun 3 years ago
- Update upstream source from tag 'upstream/2.0.3' Sophie Brun 3 years ago
- Update standards version to 4.5.0, no changes needed. Kali Janitor 3 years ago
- Set upstream metadata fields: Bug-Database, Bug-Submit, Repository, Repository-Browse. Kali Janitor 3 years ago