Parameterize Python code for bulk survey download | XM Community
Skip to main content

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

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