lundi 12 octobre 2015

How to parse http/https response and export it to a csv file

I am have comma separated data from http/https response. I want to parse it and export it to csv so that i can give this csv data to dygrpah.js to make charts out of it.

Here is the nodejs code i have written it hits the url and gets data in string format i am using nodejs request library to hit the url

Here is the response which i am getting after hitting the url

the type of the response is string and is comma separated.

Any help is greatly appreciated.Thanks




Aucun commentaire:

Enregistrer un commentaire