Click here to Skip to main content
15,885,811 members
Articles / Programming Languages / Visual Basic

C#/VB - Automated WebSpider / WebRobot

Rate me:
Please Sign up or sign in to vote.
4.66/5 (35 votes)
15 Mar 20045 min read 144.2K   2.8K   170  
Build a flexible WebRobot and process an entire site using a WebSpider
using System;

namespace Mf.Service.WebSpider
{
	/// <summary>
	/// Summary description for WebPage.
	/// </summary>
	public class WebPage
	{
      private WebPage( ) {}

		public WebPage( string url )
		{
         m_status = PageStatus.Pending;
         m_url    = url;
		}

      #region properties
      WebPage.PageStatus   m_status;
      string               m_url;
      string               m_content;

      public WebPage.PageStatus Status
      {
         get
         {
            return m_status;
         }
         set
         {
            m_status = value;
         }
      }
      public string Url
      {
         get
         {
            return m_url;
         }
      }
      public string Content
      {
         get
         {
            return m_content;
         }
         set
         {
            m_content = value;
         }
      }
      #endregion

      public enum PageStatus
      {
         Pending,
         Success,
         Fail,
         Skip
      }
	}
}

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

A list of licenses authors might use can be found here


Written By
Web Developer
Australia Australia
I have been programming commercially since 1990, my last two major roles have been Architect/Lead Developer for an online bank and Australia's largest consumer finance comparison portal.

On the side I am a Forex Currency Trader and actively develop tools and applications for Currency Traders.

I have just launched a personal blog at www.davidcruwys.com and a website targeting Foreign Exchange traders at www.my-trading-journal.com

Comments and Discussions