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
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
Built Distribution
Close
Hashes for google-search-results-serpwow-1.0.4.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | cab27d862afff39fe8479a9abd2621978ae9a6f22cb2669e00041dec14c71bb9 |
|
MD5 | ab71efb2b4af41261cd3d78a870ac299 |
|
BLAKE2b-256 | 5c4cb73f0caa6ed0aeb8eb183ff6eb51d552454bf8130196d4d72538ed18b509 |
Close
Hashes for google_search_results_serpwow-1.0.4-py2-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | aa5608c6dfebc88a38db9803f3940ba05a7e865395b31d1bdf5743aeac733f93 |
|
MD5 | 8cf9e5ff415fdca38ca8a9cde044cad4 |
|
BLAKE2b-256 | 3b3d53ef4f7c80a8a36ecce0d335c5684671d9cbd1d0086c6f68b8a3c79e8b79 |