Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1
  • 2

TOPIC: Automating Export of Limesurvey Responses

Automating Export of Limesurvey Responses 3 years 8 months ago #54569

  • rvenkat
  • rvenkat's Avatar
  • OFFLINE
  • Senior Lime
  • Posts: 42
  • Thank you received: 1
  • Karma: 2
I would like to know if there is way to export survey responses automatically into a separate program (which does data analysis)?

I want to automatically get responses at periodic intervals. I would like to configure survey ID, start and end dates for the period.

Currently, I am able to manually get data in CSV. Can we automate this process?

Has anyone tried doing this? Your suggestions/experience would be greatly appreciated.
The administrator has disabled public write access.

Re: Automating Export of Limesurvey Responses 3 years 8 months ago #54615

  • DenisChenu
  • DenisChenu's Avatar
  • OFFLINE
  • Moderator Lime
  • Posts: 6276
  • Thank you received: 801
  • Karma: 240
LimeSurvey use database, you can use a php script (or another langage) to extract the answer from the database, and export like you want with a cron job.

You can have a look at admin/export.php to have some function to use for your script.

But you need to develop you own solution.
The administrator has disabled public write access.
The following user(s) said Thank You: rvenkat

Re: Automating Export of Limesurvey Responses 3 years 8 months ago #54635

  • rvenkat
  • rvenkat's Avatar
  • OFFLINE
  • Senior Lime
  • Posts: 42
  • Thank you received: 1
  • Karma: 2
Thank you. I will look into it.
The administrator has disabled public write access.

Re: Automating Export of Limesurvey Responses 3 years 8 months ago #54636

  • rvenkat
  • rvenkat's Avatar
  • OFFLINE
  • Senior Lime
  • Posts: 42
  • Thank you received: 1
  • Karma: 2
Did you mean admin/exportresults.php?
Thanks.
The administrator has disabled public write access.

Re: Automating Export of Limesurvey Responses 3 years 8 months ago #54638

  • DenisChenu
  • DenisChenu's Avatar
  • OFFLINE
  • Moderator Lime
  • Posts: 6276
  • Thank you received: 801
  • Karma: 240
rvenkat wrote:
Did you mean admin/exportresults.php?
Thanks.
I don't look, but i think it's a good start.

And i think you can have a look to a search site (like google) with
PHP Script Export MySQL CSV
The administrator has disabled public write access.

Re: Automating Export of Limesurvey Responses 3 years 8 months ago #54643

  • Luke
  • Luke's Avatar
  • OFFLINE
  • Fresh Lemon
  • Posts: 13
  • Thank you received: 1
  • Karma: 1
Shnoulle wrote:
LimeSurvey use database, you can use a php script (or another langage) to extract the answer from the database, and export like you want with a cron job.

No, it will not be that easy. LS does not store actual values in the tables, but the codes. The codes link to other tables with actual values.

My survey has over 400 questions. Most of them are dropdowns. Doing what you suggested manually is just not practical.
The administrator has disabled public write access.

Re: Automating Export of Limesurvey Responses 3 years 8 months ago #54644

  • holch
  • holch's Avatar
  • OFFLINE
  • LimeSurvey Team
  • Posts: 2639
  • Thank you received: 313
  • Karma: 115
well, I think what Shnoulle wants to say is, that there is a export of results to csv which uses the exportresults.php. If you want something different than that, then the best way would be to have a look at the exportresults.php to see how it is done and then customize something for your specific needs.
Have a look at the manual! It is a really valuable source for information. Here some helpful links:
Manual (EN) | Question Types | Question Attributes | Workarounds

If you found this answer helpful and it saved you some time please consider a donation to the project to keep Limesurvey going!
The administrator has disabled public write access.

Re: Automating Export of Limesurvey Responses 3 years 8 months ago #54645

  • Luke
  • Luke's Avatar
  • OFFLINE
  • Fresh Lemon
  • Posts: 13
  • Thank you received: 1
  • Karma: 1
holch wrote:
well, I think what Shnoulle wants to say is, that there is a export of results to csv which uses the exportresults.php. If you want something different than that, then the best way would be to have a look at the exportresults.php to see how it is done and then customize something for your specific needs.

And for someone already familiar with the code, how hard would it be to write

cmdline_export_survey_data_csv.php

;)
The administrator has disabled public write access.

Re: Automating Export of Limesurvey Responses 3 years 8 months ago #54647

  • holch
  • holch's Avatar
  • OFFLINE
  • LimeSurvey Team
  • Posts: 2639
  • Thank you received: 313
  • Karma: 115
Well, I assume if Shnoulle would know it, he would have said so, don't you think. Not everyone who is somehow involved with LS knows every function and every bit of it. As far as I know, everyone has some kind of speciality.
Have a look at the manual! It is a really valuable source for information. Here some helpful links:
Manual (EN) | Question Types | Question Attributes | Workarounds

If you found this answer helpful and it saved you some time please consider a donation to the project to keep Limesurvey going!
The administrator has disabled public write access.

Re: Automating Export of Limesurvey Responses 3 years 7 months ago #54655

  • DenisChenu
  • DenisChenu's Avatar
  • OFFLINE
  • Moderator Lime
  • Posts: 6276
  • Thank you received: 801
  • Karma: 240
holch wrote:
Well, I assume if Shnoulle would know it, he would have said so, don't you think. Not everyone who is somehow involved with LS knows every function and every bit of it. As far as I know, everyone has some kind of speciality.
Yep,

I never work on a function like this , i think it was 'some' hour of working :).

And Luke, your right, you need to link the table 'lime_survey_xxxx' with question and answer to do the job. I think, if i work on it, to look at the existent function, and include common.php, exportresult.php etc ... can be interesting.

Some of us offer professionnal support if you want :).
The administrator has disabled public write access.
  • Page:
  • 1
  • 2
Moderators: ITEd
Time to create page: 0.134 seconds
Donation Image