Skip to main content

PIP package to scrape and parse Google Search Results using SerpWow. Visit https://serpwow.com to sign up for a free API key.

Project description

This Python package allows you to scrape and parse Google Search Results using SerpWow. In addition to Search you can also use this package to access the SerpWow Locations API and Account API.

Simple Example

from google_search_results import GoogleSearchResults

serpwow = GoogleSearchResults("demo")

params = {
  "q" : "pizza",
  "location" : "New York,New York,United States"
}

result = serpwow.get_json(params)

print result

Getting an API Key

To get a free API Key head over to app.serpwow.com/signup. No credit card is required and you get 100 free searches to get started.

Searching with a location

from google_search_results import GoogleSearchResults
import json

# create the serpwow object, passing in our API key
serpwow = GoogleSearchResults("demo")

# set up a dict for the search parameters
params = {
  "q" : "pizza",
  "location" : "New York,New York,United States"
}

# retrieve the search results as JSON
result = serpwow.get_json(params)

# pretty-print the result
print(json.dumps(result, indent=2, sort_keys=True)

Account API Example

The Account API allows you to check your current SerpWow usage and billing information.

from google_search_results import GoogleSearchResults
import json

# create the serpwow object, passing in our API key
serpwow = GoogleSearchResults("demo")

# get our account info
result = serpwow.get_account()

# pretty-print the result
print(json.dumps(result, indent=2, sort_keys=True)

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-serpwow-1.0.4.tar.gz (1.7 kB view hashes)

Uploaded Source

Built Distribution

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