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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file odap-adform-downloader-1.0.3.tar.gz.
File metadata
- Download URL: odap-adform-downloader-1.0.3.tar.gz
- Upload date:
- Size: 6.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.12 CPython/3.10.2 Darwin/21.4.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
99543ec9256955d6bd546315849112780f1ab1ee53e307d693110ab22572397a
|
|
| MD5 |
3a4c390971819d774ca7d10b7691fcf6
|
|
| BLAKE2b-256 |
66f7d4e8efbdc9bc31c062ba906e079ed29c50a19f49afc94e220664031e7197
|
File details
Details for the file odap_adform_downloader-1.0.3-py3-none-any.whl.
File metadata
- Download URL: odap_adform_downloader-1.0.3-py3-none-any.whl
- Upload date:
- Size: 6.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.12 CPython/3.10.2 Darwin/21.4.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2b24f646c41f1e49dc7c09e3f08986d75d879d979b934a1854764fa940b7d1bb
|
|
| MD5 |
13a814f700c782b195d6933c630a25e0
|
|
| BLAKE2b-256 |
7f97c719792c986c6a773c39f207deb226ae2d0bb37f6189cac02ed2d853ff64
|