Parameterize Python code for bulk survey download | XM Community
Question

Parameterize Python code for bulk survey download

  • 30 May 2020
  • 1 reply
  • 19 views

Hi,
I am using Python requests package for downloading my surveys responses using specific Survey ID from within Python IDE environment
However, my use case requires me to download bulk surveys (100+) with certain conditions such as specific survey name structure, dates surveys were floated etc.
Can someone assist me as to how do I parameterize my code?
Thanks
Gautam
download_qualtrics.txt


1 reply

Badge +1

One quick suggestion would be you can make a dictionary with the keys being the Survey ID, and the values being another dictionary of all the different options. You could then iterate through each dictionary entry:

for surveyID, options in idDict.items():

And then access the different keys/values in the "options" dictionary to set those parameters.

Leave a Reply