using System;
using System.Collections.Generic;
using System.Text;
using System.Diagnostics;
using System.Text.RegularExpressions;
using System.IO;
using System.Net;
namespace Capture
{
class Program
{
static void Main(string[] args)
{
string[] urls= {
"http://www.yongfa365.com",
"http://www.cbdcn.com",
"http://www.csdn.net",
"http://www.sina.com",
"http://www.tom.com",
};
string html="";
html = CaiJi.GetHtmlSource("http://www.yongfa365.com", Encoding.Default);
Console.Write(html);
Console.ReadKey();
html = CaiJi.GetHtmlSource("http://www.baidu.com/");
Console.Write(html);
Console.ReadKey();
html = CaiJi.GetHtmlSource("http://www.tom.com","utf-8");
Console.Write(html);
Console.ReadKey();
foreach (string url in urls)
{
Console.Write(CaiJi.GetHtmlSource(url));
Console.ReadKey();