Skip to main content

Scrape and search localized results from Google, Bing, Baidu, Yahoo, Yandex, Ebay at scale using SerpApi.com

Project description

https://travis-ci.org/serpapi/google-search-results-python.svg?branch=master

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 2.7 or 3.7.

pip install google-search-results

Link to the python package page

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

See the playground to generate your code.

Documentation available here

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

google_search_results-1.8.0.tar.gz (8.0 kB view details)

Uploaded Source

File details

Details for the file google_search_results-1.8.0.tar.gz.

File metadata

  • Download URL: google_search_results-1.8.0.tar.gz
  • Upload date:
  • Size: 8.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/46.0.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.7.7

File hashes

Hashes for google_search_results-1.8.0.tar.gz
Algorithm Hash digest
SHA256 6dfaff62db64886d4a61ba6c8b308e0a3d683449a6c2574bb38bd65f05d756d0
MD5 f921ace9ee2baf8e4e25bb9b2ad83a4a
BLAKE2b-256 668fe6dd659333f9925f70b4b799893ecc65105b0093418f944926150e495b65

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page