Library for scraping google search results
Project description
google-search
Library for scraping google search results.
Usage:
from googlesearch import googlesearch.GoogleSearch response = GoogleSearch().search("something") for result : 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.
History
1.0.0 (2017-05-06)
First release on PyPI.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for google_search-1.0.0-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a535dd67a777ca10f829430fb1c60e1463f4c570e90f966444b82040ce96bc03 |
|
MD5 | c1dc192b251eb7ea0676cf7f99124f4f |
|
BLAKE2b-256 | d2ffb7226359391923b216a15ff672b74018241fc0b6aee0ab669e7bb56d239d |