DataSentics adform zip downloader
Project description
DataSentics Python package for downloading adform data
This package is distributed under the "DataSentics SW packages Terms of Use." See license
Downloads data from adform in zip files
You need to specify:
- Credentials (name, setup_id, client_id, secret)
- Optionally you can specify scope, which data from Adform you would like to download, dates and file directory
$ pip install adform-downloader
from adform.Client import Client, FilePersistingHandler
from adform.Credentials import Credentials
setup_id = ""
client_id = ""
client_secret = ""
# optionally can be added into credentials. Written with default values
file = "/tmp/" # for state file
scopes = [
"https://api.adform.com/scope/buyer.masterdata",
"https://api.adform.com/scope/eapi",
"https://api.adform.com/scope/buyer.rtb.lineitem",
]
tables = ["Click", "Event", "Impression", "Trackingpoint", "meta"]
start_day=today-8days, # format dd-mm-yyyy
end_day=today,
landing_file = "/tmp/" # for data, can be same as file
persisting_handler = FilePersistingHandler(location=file)
credentials = Credentials(setup_id=setup_id, client_id=client_id, client_secret=client_secret)
client = Client(credentials, persisting_handler)
client.download_masterdata_files_by_id()
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 odap-adform-downloader-1.0.3.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 99543ec9256955d6bd546315849112780f1ab1ee53e307d693110ab22572397a |
|
MD5 | 3a4c390971819d774ca7d10b7691fcf6 |
|
BLAKE2b-256 | 66f7d4e8efbdc9bc31c062ba906e079ed29c50a19f49afc94e220664031e7197 |
Close
Hashes for odap_adform_downloader-1.0.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2b24f646c41f1e49dc7c09e3f08986d75d879d979b934a1854764fa940b7d1bb |
|
MD5 | 13a814f700c782b195d6933c630a25e0 |
|
BLAKE2b-256 | 7f97c719792c986c6a773c39f207deb226ae2d0bb37f6189cac02ed2d853ff64 |