This Python package is meant to scrape and parse Google, Google Scholar, Bing, Baidu, Yandex, Yahoo, Ebay results using SerpApi. The following services are provided:
SerpApi provides a script builder to get you started quickly.
Installation
Compatible with Python 3.7+
pip install google-search-results
Quick start
from serpapi.google_search_results import GoogleSearchResults
client = GoogleSearchResults({"q": "coffee", "location": "Austin,Texas", "api_key": "secretKey"})
result = client.get_dict()
This example runs a search about “coffee” using your secret api key.
The Serp API service (backend)
searches on Google using the client: q = “coffee”
parses the messy HTML responses
return a standardizes JSON response
The GoogleSearchResults class
Format the request
Execute GET http request against Serp API service
Parse JSON response into a dictionary
Et voila..
Alternatively, you can search:
Bing using BingSearchResults class
Baidu using BaiduSearchResults class
Yahoo using YahooSearchResults class
Ebay using EbaySearchResults class
Yandex using YandexSearchResults class
GoogleScholar using GoogleScholarSearchResults class
Release files for google-search-results 1.8.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| google_search_results-1.8.2.tar.gz | 10.8 kB | Details |
Release files / google_search_results-1.8.2.tar.gz
| Download URL | google_search_results-1.8.2.tar.gz |
|---|---|
| Size | 10.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
9ada2843b2d0261a5c8841920c11400d7299e4030b47e661060535997ed95256
|
|
BLAKE2b-256 checksum How to use checksums |
189210421df51c2dc9220fe43d46f2c01dbc978f8a16650d22e6fa5187b0f870
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/47.3.1 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.7.7
|