Skip to main content

Scrape and search localized results from Google, Bing, Baidu, Yahoo, Yandex, Ebay, Homedepot, youtube 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

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

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-2.4.0.tar.gz (10.1 kB view details)

Uploaded Source

File details

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

File metadata

  • Download URL: google_search_results-2.4.0.tar.gz
  • Upload date:
  • Size: 10.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.5.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.0 CPython/3.8.2

File hashes

Hashes for google_search_results-2.4.0.tar.gz
Algorithm Hash digest
SHA256 fa3305468c7ecaff3d39b38810455a4256404f4c01fa90e31dc352b798df0ac5
MD5 e489d75a7ee7d0d8c8e47cfa740a9a7c
BLAKE2b-256 c235d60b766cf8ffbbb86c701dc2042e360d224180ba32056b7a5f56bfab2697

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