• 大小: 0.35M
    文件类型: .rar
    金币: 1
    下载: 0 次
    发布日期: 2020-12-14
  • 语言: C#
  • 标签: 爬虫  网页  C#  

资源简介

微软为我们提供两个关于HTTP请求HttpWebRequest,HttpWebResponse对象,方便我们发送请求获取数据。需要其他源码,加qq735002975

资源截图

代码片段和文件信息

using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using System.Text.Regularexpressions;
using System.Threading;
using System.Threading.Tasks;
using 网页爬虫;

namespace ConsoleApp2
{
    class Program
    {
        static void Main(string[] args)
        {
            GetSimpleCrawlerMain(“https://book.qidian.com/info/1010868264“);
        }

        public static void GetSimpleCrawlerMain(string Url)
        {
            // var Url = ““;//定义爬虫入口url地址
            bool result = false;

            SimpleCrawler sc = new SimpleCrawler();

            sc.onstart += (s e) =>

            {
                Console.WriteLine(““ + e.Uri.ToString());
            };

            sc.onerror += (s e) =>
            {

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----

     文件        110  2019-12-28 11:25  ConsoleApp2\.vs\ConsoleApp2\DesignTimeBuild\.dtbcache

    ..A..H.     48128  2019-12-28 12:16  ConsoleApp2\.vs\ConsoleApp2\v16\.suo

     文件          0  2019-12-28 01:03  ConsoleApp2\.vs\ConsoleApp2\v16\Server\sqlite3\db.lock

     文件    1781760  2019-12-28 12:16  ConsoleApp2\.vs\ConsoleApp2\v16\Server\sqlite3\storage.ide

     文件        189  2019-12-27 23:15  ConsoleApp2\App.config

     文件      20441  2019-12-28 12:15  ConsoleApp2\bin\Debug\2019122812.html

     文件       2297  2019-12-28 12:14  ConsoleApp2\bin\Debug\20191228121431.html

     文件       2297  2019-12-28 12:14  ConsoleApp2\bin\Debug\20191228121434.html

     文件       9216  2019-12-28 12:15  ConsoleApp2\bin\Debug\ConsoleApp2.exe

     文件        189  2019-12-27 23:15  ConsoleApp2\bin\Debug\ConsoleApp2.exe.config

     文件      24064  2019-12-28 12:15  ConsoleApp2\bin\Debug\ConsoleApp2.pdb

     文件      13312  2019-12-28 11:58  ConsoleApp2\bin\Debug\网页爬虫.dll

     文件      34304  2019-12-28 00:52  ConsoleApp2\bin\Debug\网页爬虫.pdb

     文件       2595  2019-12-28 01:04  ConsoleApp2\ConsoleApp2.csproj

     文件       1126  2019-12-28 11:25  ConsoleApp2\ConsoleApp2.sln

     文件          0  2019-12-28 12:15  ConsoleApp2\obj\Debug\ConsoleApp2.csproj.CopyComplete

     文件         42  2019-12-27 23:15  ConsoleApp2\obj\Debug\ConsoleApp2.csproj.CoreCompileInputs.cache

     文件       1560  2019-12-28 01:04  ConsoleApp2\obj\Debug\ConsoleApp2.csproj.FileListAbsolute.txt

     文件       4703  2019-12-28 12:15  ConsoleApp2\obj\Debug\ConsoleApp2.csprojAssemblyReference.cache

     文件       9216  2019-12-28 12:15  ConsoleApp2\obj\Debug\ConsoleApp2.exe

     文件      24064  2019-12-28 12:15  ConsoleApp2\obj\Debug\ConsoleApp2.pdb

     文件       6786  2019-12-28 01:04  ConsoleApp2\obj\Debug\DesignTimeResolveAssemblyReferencesInput.cache

     文件          0  2019-12-27 23:15  ConsoleApp2\obj\Debug\TemporaryGeneratedFile_036C0B5B-1481-4323-8D20-8F5ADCB23D92.cs

     文件          0  2019-12-27 23:15  ConsoleApp2\obj\Debug\TemporaryGeneratedFile_5937a670-0e60-4077-877b-f7221da3dda1.cs

     文件          0  2019-12-27 23:15  ConsoleApp2\obj\Debug\TemporaryGeneratedFile_E7A71F73-0F8D-4B9B-B56E-8E70B10BC5D3.cs

     文件       5658  2019-12-28 12:15  ConsoleApp2\Program.cs

     文件       1334  2019-12-27 23:15  ConsoleApp2\Properties\AssemblyInfo.cs

     目录          0  2019-12-28 12:17  ConsoleApp2\.vs\ConsoleApp2\v16\Server\sqlite3

     目录          0  2019-12-28 12:17  ConsoleApp2\.vs\ConsoleApp2\v16\Server

     目录          0  2019-12-28 12:17  ConsoleApp2\.vs\ConsoleApp2\DesignTimeBuild

............此处省略14个文件信息

评论

共有 条评论