Skip to content
clevertap csv download tool
Python
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.gitignore initial Jan 22, 2017
README.md refactor Aug 25, 2017
clevertap.py refactor Aug 25, 2017
csvdownload.py refactor Aug 25, 2017
query_example.json

README.md

CleverTap python csv download tool

Usage

to download user profiles/events to a csv:

  • git clone the repo (or simply copy-paste the files clevertap.py and csvdownload.py, and place them in the same folder)
  • cd to cloned directory (or the directory where you have created the above two files)
  • run csvdownload.py passing your CleverTap Account ID, Passcode, absolute path to your json file and the absolute path to your csv file.
  • e.g. python csvdownload.py -a WWW-YYY-ZZZZ -c AAA-BBB-CCCC -pjson ~/Desktop/query_example.json -pcsv ~/Desktop/event.csv -t event
arguments:
  -h, --help                        show this help message and exit
  -a ID, --id ID                    CleverTap Account ID
  -c PASSCODE, --passcode PASSCODE  CleverTap Account Passcode
  -r REGION, --region REGION        Dedicated CleverTap Account Regioni, optional
  -pjson PATH, --path PATH          Absolute path to the json file
  -pcsv PATH, --path PATH           Absolute path to the csv file
  -t TYPE, --type TYPE              The type of query, either profile or event, defaults to profile

NOTE: The .csv file generated will be utf-8 encoded. This file might cause unusual behaviour in Excel application depending on your encoding settings. It can be viewed without any problem on Google Spreadsheets or Numbers application.

You can’t perform that action at this time.