Click here to Skip to main content
Sign Up to vote bad
good
See more: C#.NET
I want to make an application in C# that is capable of accessing a website and extract the required information from it.
 
I am new so please help anybody...
 
Thanks
Posted 4 Jan '13 - 5:11

Comments
Sandeep Mewara - 4 Jan '13 - 11:27
Access website in what way? Is the other website and it's data accessible to you? Or are you trying to access data from someone elses website?
deepaksharma0390 - 4 Jan '13 - 11:33
yes the data which is available on someone else's website.

2 solutions

the data which is available on someone else's website.
For using/accessing data from someone else website, you only have an option of screen scrapping. Further, you need to make sure capturing/copying data is allowed by that website or else there might be a legal issue.
 
For page scrapping, have a look at this:
MSDN: WebRequest Class details with sample[^]
 
Other Samples:
CP Vanity[^]
The Code Project Forum Analyzer : Find out how much of a life you don't have![^]
  Permalink  
Yes you can, absolutely. This is the technique of something called Web scraping: http://en.wikipedia.org/wiki/Web_scraping[^].
 
You need to use the class System.Net.HttpWebRequest, for simplest cases you could you the class System.Net.WebClient. And then you may need something to parse obtained HTML content. For further detail, please see my past answers:
get specific data from web page[^],
How to get the data from another site[^].
 
—SA
  Permalink  

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

  Print Answers RSS
Your Filters
Interested
Ignored
     
0 Sergey Alexandrovich Kryukov 464
1 Mahesh Bailwal 373
2 Maciej Los 255
3 Rohan Leuva 175
4 CPallini 175
0 Sergey Alexandrovich Kryukov 9,402
1 OriginalGriff 7,204
2 CPallini 3,933
3 Rohan Leuva 3,211
4 Maciej Los 2,743


Advertise | Privacy | Mobile
Web03 | 2.6.130516.1 | Last Updated 4 Jan 2013
Copyright © CodeProject, 1999-2013
All Rights Reserved. Terms of Use
Layout: fixed | fluid