Click here to Skip to main content
15,884,099 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
Hi,
I am quite new to programming. I need to extract the data from this HTML page: http://www.bmreports.com/servlet/com.logica.neta.bwp_MarketIndexServlet?displayCsv=false

I need to get the data updated every 30mins or so. Since, this page already has link to extract the current data in csv, i was hoping it might be possible to capture this information in csv using either C#, VB.Net or some VB Script.

Would appreciate any guidance on how I can pull this information in CSV format using any of the 3- C#, VB.NET, VB Script.

Thanks,
J
Posted
Comments
PIEBALDconsult 26-Nov-15 17:11pm    
Absolutely possible. What will you then do with the data?
jgakenhe 26-Nov-15 22:05pm    
You can pull the CSV file down real easy with SSIS. You'll need to lookup how to do it with the HttpClientConnection.DownloadFile() inside of a Script Task.

1 solution

There are dozens of different ways... if you look at the page source there you'll see that the CSV data is right there in a script tag. You could download the page using .NET's WebClient class, then it'd be pretty straightforward to parse the code to extract this data.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900