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
# Google Search Results in Python
This Python package allows you to scrape and parse Google Search Results using [SerpWow](https://serpwow.com). In addition to [Search](https://serpwow.com/docs/search/overview) you can also use this package to access the SerpWow [Locations API](https://serpwow.com/docs/locations/overview) and [Account API](https://serpwow.com/docs/account/overview).
## Simple Example
```python
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](https://app.serpwow.com/signup). No credit card is required and you get 100 free searches to get started.
## Searching with a location
```python
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](https://serpwow.com/docs/account/overview) allows you to check your current SerpWow usage and billing information.
```python
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)
```
This Python package allows you to scrape and parse Google Search Results using [SerpWow](https://serpwow.com). In addition to [Search](https://serpwow.com/docs/search/overview) you can also use this package to access the SerpWow [Locations API](https://serpwow.com/docs/locations/overview) and [Account API](https://serpwow.com/docs/account/overview).
## Simple Example
```python
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](https://app.serpwow.com/signup). No credit card is required and you get 100 free searches to get started.
## Searching with a location
```python
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](https://serpwow.com/docs/account/overview) allows you to check your current SerpWow usage and billing information.
```python
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.2.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 67df6f1f5e8553b1d5f1d3762f9cc80e00b3381ae715ab14799dc36b8ae55b9f |
|
MD5 | e0fab06f0ee9baf75b003bfa4ad01d32 |
|
BLAKE2b-256 | 68ec03455013f81c7663b2259cbd712b4be43f30bcd10a3eccdb9bc5ea52aa61 |
Close
Hashes for google_search_results_serpwow-1.0.2-py2-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 151631a163234035e5a0dbbafd6c631e83975f774fc7708ffbd773ca70e0dab9 |
|
MD5 | b6da8faa7bcb5e98b3b7daceb82ef18a |
|
BLAKE2b-256 | 4695eb14887832f50dfbaf3b35a71ade44f478f1fa429463cb66a63f4ddaf7d3 |