gagrab
The official Google Analytics API is very powerfull and extensive. Sometimes, though, you just want to grab some data and have it returned in a clean format.
from service_account_auth import AuthorizedService
from gagrab import Grabber
my_ga_service = AuthorizedService('my-project-555', 'analytics', 'v3')
grabber = Grabber(my_ga_service)
data = grabber.query(
view='UA-000000-1',
metrics=['sessions', 'pageviews'],
dimensions=['browser', 'userAgeBracket']
start_date='2014-07-01',
end_date='2014-08-15',
)
Installation
To install the latest release, type:
pip install gagrab
To install the latest code directly from source, type:
pip install git+git://github.com/ambitioninc/gagrab.git
The gagrab.Grabber object requires a service_account_auth.AuthorizedService object during initialization. Installation and setup instructions for gclient-service-account-auth can be found on the github page https://github.com/ambitioninc/gclient-service-account-auth.
Documentation
Full documentation is available at http://gagrab.readthedocs.org
License
MIT License (see LICENSE)
Release files for gagrab 0.2.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| gagrab-0.2.0.tar.gz | 6.4 kB | Details |
Release files / gagrab-0.2.0.tar.gz
| Download URL | gagrab-0.2.0.tar.gz |
|---|---|
| Size | 6.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
690d69f516397c3886042102f2be8761a81a2732bba87dcc9d9bb072f365bd45
|
|
BLAKE2b-256 checksum How to use checksums |
0d9c21026a0e5ebaa0845706e72900b5fa1efcec3755770d960f1d15a3306d4d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |