Click here to Skip to main content
15,881,821 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Hi - i am working on a project for my own where i want to open a webpage and extract the required data or web data to a CSV/excel file? i m done with webbrowser but dnt knw how to get started wth getting targeted data? any help?? plss??? working in c# and .net
Posted
Comments
fjdiewornncalwe 24-Oct-12 14:51pm    
No where near enough information to help you.
Sergey Alexandrovich Kryukov 24-Oct-12 15:46pm    
Basic ideas are the same for different applications, so I answered -- please see.
--SA
Wartickler 24-Oct-12 15:02pm    
You gotta tell us what type of data. Maybe give us an example site?
Sergey Alexandrovich Kryukov 24-Oct-12 15:47pm    
I think OP should be able to figure it out; the main ideas are simple enough -- please see my answer.
--SA

1 solution

Using a Web browser here will hardly help you much. You need to work with HTTP directly. All you need is to use the class System.Net.HttpWebRequest to send HTTP request, get HTTP response (System.Net.HttpWebResponse) and analyze the result, parse it, etc. Please see:
http://msdn.microsoft.com/en-us/library/system.net.httpwebrequest.aspx[^] (find a code sample here),
http://msdn.microsoft.com/en-us/library/system.net.httpwebresponse.aspx[^].

Basically, you will need to use some elements of Web scraping techniques:
http://en.wikipedia.org/wiki/Web_scraping[^].

For some more detail, please see my past answers:
How to get the data from another site[^],
get specific data from web page[^].

—SA
 
Share this answer
 
v2

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