Geeks With Blogs
Sandu's Blog Views on life as a techie

Screen scraping is a technique in which a computer program extracts data from the display output of another program(source:wikepedia)

The following code could be used to do screen scraping from a web site.

HttpWebResponse response;

WebProxy proxy = new WebProxy(proxyaddress);

proxy.Credentials = new NetworkCredential("username","password");

HttpWebRequest request = (HttpWebRequest)System.Net.HttpWebRequest.Create(url);

request.Proxy = proxy;

response = (HttpWebResponse)request.GetResponse();

using (StreamReader sr = new StreamReader(response.GetResponseStream()) )


result = sr.ReadToEnd();

// Close and clean up the StreamReader




Posted on Wednesday, May 24, 2006 2:56 PM | Back to top

Comments on this post: Screen Scraping

# A Continuous Learner's Weblog
Requesting Gravatar...
This guy's got a load of links to some cool pieces of code
Left by on Jun 09, 2006 10:49 AM

Your comment:
 (will show your gravatar)

Copyright © Sandaruwan Fernando | Powered by: