Right now, i found out that if i were to put this url to my browser, a .csv
file will be downloaded to my Downloads folder on My Computer, where the word YHOO
is the stock symbol of Yahoo
http://ichart.finance.yahoo.com/table.csv?s=YHOO&d=0&e=28&f=2010&g=d&a=3&b=12&c=1996&ignore=.csv
Is there any way where I can implement the above action on my own personal-use RESTful website where
.csv
file is converted to json
object on serverjson
object is returned to clientHow can i do this, and which framework is recommended for high performance. i am thinking of NodeJS and Mongoose.
I'm interpreting your question like this:
If so, then the answer to your question is yes, this is possible albeit a bit tricky if you want to to work properly. This doesn't have to be Node.js specific. You don't need Node.js nor Mongoose for this since you're not saving the CSV to the harddrive but just going to be an interrim transporter.
Basically you can in your "servlet" issue a POST call to another url and fetch the CSV file.
Then convert this and write the file on the response and serve it back to the client.