Skip to main content

Google / Bing / Baidu Search Results in Python

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

Link to the python package page

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

  • Home depot using HomeDepotSearch class

  • GoogleScholar using GoogleScholarSearch class

See the playground to generate your code.

Documentation available here

Metadata

Release files for google-search-results 2.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for google-search-results 2.1.0
File Size Uploaded Provenance
google_search_results-2.1.0.tar.gz 8.1 kB Without provenance Details

Release files / google_search_results-2.1.0.tar.gz

Download URL google_search_results-2.1.0.tar.gz
Size 8.1 kB
Tags Source
SHA-256 checksum
How to use checksums
d36f81ad39119883aa07d66feaa37ef5b6c311245badf0f5eda8fbaea744fe80
BLAKE2b-256 checksum
How to use checksums
c7cb82efcc1fb968c759345082ffb781ec4617fe5de3e4699eec22dce3e7a74f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.2.0 pkginfo/1.6.1 requests/2.25.1 setuptools/54.1.2 requests-toolbelt/0.9.1 tqdm/4.51.0 CPython/3.9.2

Security for google-search-results 2.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

Release history Release notifications | RSS feed

This release

2.1.0 This release

1 release file No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page