开发者

How to retrieve data from Yahoo Finance to my website?

I am making an ASP.NET website where I want to retrieve data from Yahoo Finance, e.g.:

http://finance.yahoo.com/d/quotes.csv?s=RHT+MSFT&f=sb2b3jk

I am referring to above link to fetch data from Yahoo Finance.

The above link gives data in CSV format.

So how can I f开发者_运维百科etch data from the above link into my website? Any code or reference to some tutorial would be of great help.


Use the System.Net.WebClient to request the CSV, then something like FileHelpers to parse the file into a usable object. Then stuff into whatever you want.


Got the answer.

Used System.Net.WebRequest to download the CSV and then parsed it using answer in below link.

How to parse a CSV file in an ASP.NET website?

Hope this helps someone.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜