LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Retrieving Content on the Web

Hi!

I am trying to retrieve .csv files from the web (actually historical
stock data from yahoo, i.e. the CGI at tables.finance.yahoo.com).
I would like to develop an application capable to retrieve separate
..csv files relevant to different stocks; I have tried both with
Datasocket Read String and with the URL Get Document functions, but
they do not seem to work.
The function remain in an idle state and, in case of DataSocket,
retrieves "Status 4" (Error, an error was encountered with the source
or target the DataSocket was connected to, or an error was encountered
trying to connect to it), despite I increase the timeout to many
seconds.

If I try with other content (for instance www.yahoo.com), DataSocket
Read String works, while URL Get Do
cument still doesn't.

Thanks in advance for your help

Cristiano
0 Kudos
Message 1 of 2
(2,790 Views)
Cristiano,

I have built a script that retrieves this data from Yahoo's site. I recommend that you go after the HTML data, not the .csv files. I use the DataSocket Read to retrieve the HTML content, and then parse out what data I need.

I currently do this for the delayed quotes data, but it could be done for realtime data as well.

As far as going after historical data, I'm at a loss.

If you give me the URL of a sample of the historic data you are looking for (the page with the LINK to the .csv file for example) I can probably help you.
Message 2 of 2
(2,790 Views)