Script to handle data from Survey Monkey (SM) data and save tables an schemas of tables in JSON files
in local directory.
For more information about the API endpoints of SM, please refer to
documentation.
To create the development environment it's recommended to use conda.
Run the following commands to get the environment ready
conda create -n ENVIRONMENT_NAME python=3.8
conda activate ENVIRONMENT_NAME
pip install -r requirements.txt
You might need environment variable SM_ACCESS_TOKEN
to be used in requests to Survey Monkey API.
export SM_ACCESS_TOKEN='YOUR TOKEN'
There is a function that collects data for all surveys in SM account of interest.
The SM account of interest need to be a paid account to access endpoint with details of responses.
The default in api.py is to collect and insert the data in JSON files for each table and for each schema, as
following:
python main.py