![]() |
General Programming »
Internet / Network »
General
Intermediate
License: The Code Project Open License (CPOL)
WebResourceProvider goes .NETBy Ravi BhavnaniA a simple yet powerful framework for retrieving useful information from public sources on the web. |
C#, Windows, .NET1.1, .NET2.0VS.NET2003, VS2005, Dev
|
|
Advanced Search Add to IE Search |
|
|
|
||||||||||||||||
This article (an improved .NET version of my C++ version) describes WebResourceProvider, a simple yet powerful framework for retrieving useful information from public sources on the web, such as:
Apart from being rewritten in C# from the ground up, this .NET version offers a smaller footprint than its C++ predecessor and makes it easy (almost trivial) to encapsulate functionality offered by online services into an object that can be manipulated by your application. Here are screenshots of some WebResourceProvider applications (listed at the end of this article) in action.
Domain Walker |
Google Translator |
Simple RSS Reader |
Before you use WebResourceProvider to write the next killer app, be aware that there are legal and ethical issues regarding the use of information obtained from other sources. In particular, the terms of service (TOS) of content providers such as Yahoo, CNN, etc. clearly state what you can and cannot do with information retrieved from their sites. Even if you write a web resource provider for personal use only, you should take into consideration any undue stress that your object may put on a web server. The object's Pause property allows you to inject a delay between successive HTTP requests to help prevent overloading a server.
| WebResourceProvider works by initializing itself, constructing a URL to be retrieved, downloading the resource, and extracting useful information from the downloaded content. This process repeats until no more data needs to be downloaded.
You use
In the spirit of true object orientation,
|
|
|||||||||||||||||||||
C# applications (with full source code) that use WebResourceProvider can be found here:
General
News
Question
Answer
Joke
Rant
Admin
Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads.
|
PermaLink |
Privacy |
Terms of Use
Last Updated: 17 Feb 2008 Editor: Sean Ewington |
Copyright 2006 by Ravi Bhavnani Everything else Copyright © CodeProject, 1999-2010 Web09 | Advertise on the Code Project |