LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How do I grab data from a url?query using LabView 8.0?

If I copy the following url in my web browser, it will give me the quote of BBD-A.TO symbol from yahoo. The data is comma separated (csv).
 
I would like to know how to grab that information using LabView. I tried using datasocket VIs but I was unsuccessful, it seems that as soon as I put the query part of the url, I am not able to read (timeout occur).
 
I think there might be another way to do it using .NET "httprequest" and "httpresponse" classes but again I was not successful. 
 
I am really new to this, thanks for your help.
 
 
 
0 Kudos
Message 1 of 4
(3,176 Views)

Hi Ben,

      Try adding "[text]" to the end of the URL that you're supplying to the "Datasocket Open (Read)".  In your case: http://finance.yahoo.com/d/quotes.csv?s=BBD-A.TO&d=t&f=sl1d1t1c1ohgvj1pp2wern[text]

Also, Jeremy L posted a GetHTMLSourceString.vi.

Cheers.

Message Edited by tbd on 01-07-2007 12:08 AM

"Inside every large program is a small program struggling to get out." (attributed to Tony Hoare)
Message 2 of 4
(3,163 Views)

You were right, [text] solved the problem.

Thanks a lot for your help !

0 Kudos
Message 3 of 4
(3,145 Views)
Thank YOU - I appreciate the stars!
"Inside every large program is a small program struggling to get out." (attributed to Tony Hoare)
Message 4 of 4
(3,127 Views)