Scrape and search localized results from Google, Bing, Baidu, Yahoo, Yandex, Ebay at scale using SerpApi.com
Project description
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 import GoogleSearch
search = GoogleSearch({"q": "coffee", "location": "Austin,Texas", "api_key": "secretKey"})
result = search.get_dict()
This example runs a search about “coffee” using your secret api key.
The Serp API service (backend)
searches on Google using the query: q = “coffee”
parses the messy HTML responses
return a standardizes JSON response
The GoogleSearch 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 BingSearch class
Baidu using BaiduSearch class
Yahoo using YahooSearch class
Ebay using EbaySearch class
Yandex using YandexSearch class
GoogleScholar using GoogleScholarSearch class
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file google_search_results-2.0.0.tar.gz
.
File metadata
- Download URL: google_search_results-2.0.0.tar.gz
- Upload date:
- Size: 11.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.24.0 setuptools/50.3.0 requests-toolbelt/0.9.1 tqdm/4.51.0 CPython/3.9.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 512b179861a016b37855e539866a5023b2809a343b32ebfd23d35ea2af73aec0 |
|
MD5 | 692064690887d32a6b70e3fdd81fc9cd |
|
BLAKE2b-256 | f7043cbd8c266928cd61d6d6840ef864bf27cdae4b493d27306fa8e2706616c2 |