Yandex Metrica API data loader
Project description
Medium multiply
A library to download data from Yandex Metrica API.
Installation
pip install YMAPILoader
Get started
How to download data from Yandex Metrica API with this lib:
from YMAPILoader import YMAPILoader
TOKEN = "YOU API TOKEN"
YM_TRACKER_ID = "123456"
START_DATE = '2022-05-01'
END_DATE = '2022-06-30'
METRICS = 'ym:s:visits'
DIMENSIONS = 'ym:s:referer'
data_params = {
"metrics": METRICS,
"dimensions": DIMENSIONS,
"ids": YM_TRACKER_ID,
"date1": START_DATE,
"date2": END_DATE,
"filters": "ym:s:isRobot=='No'",
"accuracy": '1',
}
data_loader = YMAPILoader(TOKEN, data_params)
data_loader.load_all_data()
data = data_loader.data
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
YMAPILoader-0.1.4.tar.gz
(4.3 kB
view details)
File details
Details for the file YMAPILoader-0.1.4.tar.gz
.
File metadata
- Download URL: YMAPILoader-0.1.4.tar.gz
- Upload date:
- Size: 4.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.10.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7897e745f545e0f2e9484dc7ea9fcb42626eb26645d4780463f717defa9e9220 |
|
MD5 | 2e365411d83a7a859c5608077a94caf4 |
|
BLAKE2b-256 | 17ca6a9fd6a5ed588a2187dc8a0705d64b3b9c7448c726b252af340b6703032f |