Scrape and search localized results from Google, Bing, Baidu at scale using SerpApi.com
Project description
# Google Search Results in Python
[![Build Status](https://travis-ci.org/serpapi/google-search-results-python.svg?branch=master)](https://travis-ci.org/serpapi/google-search-results-python)
This Python package is meant to scrape and parse Google, Bing, Baidu results using [SERP API](https://serpapi.com). The following services are provided: - [Search API](https://serpapi.com/search-api) - [Search Archive API](https://serpapi.com/search-archive-api) - [Account API](https://serpapi.com/account-api) - [Location API](https://serpapi.com/locations-api) (Google Only)
SerpApi provides a [script builder](https://serpapi.com/demo) to get you started quickly.
Feel free to fork this repository to add more backends.
## Installation
Python 2.7 or 3.7 `bash pip install google-search-results `
[Link to the python package page](https://pypi.org/project/google-search-results/)
## Quick start
`python from lib.google_search_results import GoogleSearchResults client = GoogleSearchResults({"q": "coffee", "location": "Austin,Texas"}) 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
See the [playground to generate your code.](https://serpapi.com/playground)
For more [README](https://github.com/serpapi/google-search-results-python/blob/master/README.md)
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
Hashes for google_search_results-1.5.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3bc7cd592c0825d02f7bd93d19a12dc6cdab2cb7eaf64ae30e2aac0eceab5a9d |
|
MD5 | 67bae7f8c86535b47055a6b1925c79c3 |
|
BLAKE2b-256 | 4a67062240fd0406313b70f6b8a2e8db787ee9cff9761564fe49d5cd98a1155b |