DataSentics adform 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 Distributions
No source distribution files available for this release.See tutorial on generating distribution archives.
Built Distribution
Close
Hashes for odap_adfrom_downloader-1.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 56e3ca394968306d8a43b0b5f1a1d5191d96fd1812ac9add14ac78b8afe06aed |
|
MD5 | cd9aa8699715d784fcb00dfc798d316a |
|
BLAKE2b-256 | 42707cbef97be8ead9258cc59f8cbe8bcfa11c80a982ea072bfeb4bbbc5aeb23 |