Skip to content

Instantly share code, notes, and snippets.

@muhammad-ammar
Last active February 10, 2023 05:34
Show Gist options
  • Save muhammad-ammar/c2e61cf504554b6ade95dfd7f74eab89 to your computer and use it in GitHub Desktop.
Save muhammad-ammar/c2e61cf504554b6ade95dfd7f74eab89 to your computer and use it in GitHub Desktop.
>> python survey_importer/importer.py
02-10 02:23 __main__ INFO Fetching survey data. SurveyID: [576851080], LastSuccessfullExportTimestamp: [None], URL: [https://api.surveymonkey.com/v3/surveys/576851080/responses/bulk?simple=True&sort_order=ASC&per_page=100]
02-10 02:23 __main__ INFO {
"survey_id": 576851080,
"survey_response_id": 118240634082,
"Your favorite programming language?": [
"Python",
"Rust"
],
"Your favorite code editor?": "VSCode",
"How you learn to code?": [
"College/School",
"Online Resources"
],
"Rate your experience?": 3,
"Any advice to share?": "Learn for fun and profit.",
"Open to feedback?": true
}
02-10 02:23 __main__ INFO Data exported for. Survey: [576851080], SurveyResponseId: [118240634082]
02-10 02:23 __main__ INFO {
"survey_id": 576851080,
"survey_response_id": 118240642715,
"Your favorite programming language?": [
"Rust"
],
"Your favorite code editor?": "Pycharm",
"How you learn to code?": [
"Book"
],
"Rate your experience?": 5,
"Any advice to share?": "Go home or go to learn",
"Open to feedback?": false
}
02-10 02:23 __main__ INFO Data exported for. Survey: [576851080], SurveyResponseId: [118240642715]
02-10 02:23 __main__ INFO {
"survey_id": 576851080,
"survey_response_id": 118240643073,
"Your favorite programming language?": [
"Go"
],
"Your favorite code editor?": "Sublime Text",
"How you learn to code?": [
"Workshop"
],
"Rate your experience?": 4,
"Any advice to share?": "All is well",
"Open to feedback?": true
}
02-10 02:23 __main__ INFO Data exported for. Survey: [576851080], SurveyResponseId: [118240643073]
02-10 02:23 __main__ INFO Stored export timestamp. Survey: [576851080], Timestamp: [2023-02-09T21:23:15+00:00]
02-10 02:23 __main__ INFO Successfully exported data for survey [576851080] till date [2023-02-09T21:23:15+00:00]
02-10 02:23 __main__ INFO Completed survey export for ID: [576851080]
02-10 02:23 __main__ INFO Command completed. Completed export for all surveys.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment