資源簡介
一個開源的C#蜘蛛爬蟲程序,看了讓你很受啟發. 其中涉及了Html標簽屬性的解析,爬行域名的控制,多線程等關鍵內容,入門級好教材。修訂了原程序中多線程更新UI錯誤;

代碼片段和文件信息
using?System.Reflection;
using?System.Runtime.CompilerServices;
//
//?General?Information?about?an?assembly?is?controlled?through?the?following?
//?set?of?attributes.?Change?these?attribute?values?to?modify?the?information
//?associated?with?an?assembly.
//
[assembly:?Assemblytitle(““)]
[assembly:?AssemblyDescription(““)]
[assembly:?AssemblyConfiguration(““)]
[assembly:?AssemblyCompany(““)]
[assembly:?AssemblyProduct(““)]
[assembly:?AssemblyCopyright(““)]
[assembly:?AssemblyTrademark(““)]
[assembly:?AssemblyCulture(““)]
//
//?Version?information?for?an?assembly?consists?of?the?following?four?values:
//
//??????Major?Version
//??????Minor?Version?
//??????Build?Number
//??????Revision
//
//?You?can?specify?all?the?values?or?you?can?default?the?Revision?and?Build?Numbers?
//?by?using?the?‘*‘?as?shown?below:
[assembly:?AssemblyVersion(“1.0.*“)]
//
//?In?order?to?sign?your?assembly?you?must?specify?a?key?to?use.?Refer?to?the?
//?Microsoft?.NET?framework?documentation?for?more?information?on?assembly?signing.
//
//?Use?the?attributes?below?to?control?which?key?is?used?for?signing.?
//
//?Notes:?
//???(*)?If?no?key?is?specified?the?assembly?is?not?signed.
//???(*)?KeyName?refers?to?a?key?that?has?been?installed?in?the?Crypto?Service
//???????Provider?(CSP)?on?your?machine.?KeyFile?refers?to?a?file?which?contains
//???????a?key.
//???(*)?If?the?KeyFile?and?the?KeyName?values?are?both?specified?the?
//???????following?processing?occurs:
//???????(1)?If?the?KeyName?can?be?found?in?the?CSP?that?key?is?used.
//???????(2)?If?the?KeyName?does?not?exist?and?the?KeyFile?does?exist?the?key?
//???????????in?the?KeyFile?is?installed?into?the?CSP?and?used.
//???(*)?In?order?to?create?a?KeyFile?you?can?use?the?sn.exe?(Strong?Name)?utility.
//???????When?specifying?the?KeyFile?the?location?of?the?KeyFile?should?be
//???????relative?to?the?project?output?directory?which?is
//???????%Project?Directory%\obj\.?For?example?if?your?KeyFile?is
//???????located?in?the?project?directory?you?would?specify?the?AssemblyKeyFile?
//???????attribute?as?[assembly:?AssemblyKeyFile(“..\\..\\mykey.snk“)]
//???(*)?Delay?Signing?is?an?advanced?option?-?see?the?Microsoft?.NET?framework
//???????documentation?for?more?information?on?this.
//
[assembly:?AssemblyDelaySign(false)]
[assembly:?AssemblyKeyFile(““)]
[assembly:?AssemblyKeyName(““)]
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????目錄??????????0??2017-04-17?15:43??CSharpSpider
?????目錄??????????0??2017-04-17?15:50??CSharpSpider\CSharpSpider
?????文件????????144??2017-04-17?15:51??CSharpSpider\CSharpSpider\app.config
?????文件???????1078??2003-05-04?06:05??CSharpSpider\CSharpSpider\App.ico
?????文件???????2426??2003-05-04?06:05??CSharpSpider\CSharpSpider\AssemblyInfo.cs
?????文件???????2491??2011-06-11?17:43??CSharpSpider\CSharpSpider\Attribute.cs
?????文件???????3532??2011-06-11?17:44??CSharpSpider\CSharpSpider\AttributeList.cs
????..AD...?????????0??2017-04-17?15:50??CSharpSpider\CSharpSpider\bin
????..AD...?????????0??2017-04-17?15:51??CSharpSpider\CSharpSpider\bin\Debug
?????文件??????32768??2017-04-17?19:57??CSharpSpider\CSharpSpider\bin\Debug\Spider.exe
?????文件????????144??2017-04-17?15:51??CSharpSpider\CSharpSpider\bin\Debug\Spider.exe.config
?????文件??????67072??2017-04-17?19:57??CSharpSpider\CSharpSpider\bin\Debug\Spider.pdb
?????文件??????11592??2017-04-17?15:51??CSharpSpider\CSharpSpider\bin\Debug\Spider.vshost.exe
?????文件????????144??2017-04-17?15:51??CSharpSpider\CSharpSpider\bin\Debug\Spider.vshost.exe.config
?????文件????????490??2010-03-17?22:39??CSharpSpider\CSharpSpider\bin\Debug\Spider.vshost.exe.manifest
?????目錄??????????0??2017-04-17?15:50??CSharpSpider\CSharpSpider\bin\Release
?????文件???????8064??2017-04-17?19:06??CSharpSpider\CSharpSpider\DocumentWorker.cs
?????文件???????2542??2011-06-11?17:41??CSharpSpider\CSharpSpider\Done.cs
????..AD...?????????0??2011-06-11?12:40??CSharpSpider\CSharpSpider\obj
????..AD...?????????0??2017-04-17?19:57??CSharpSpider\CSharpSpider\obj\Debug
?????文件???????5739??2017-04-17?19:57??CSharpSpider\CSharpSpider\obj\Debug\DesignTimeResolveAssemblyReferencesInput.cache
?????文件????????176??2017-04-17?19:57??CSharpSpider\CSharpSpider\obj\Debug\GenerateResource.read.1.tlog
?????文件????????392??2017-04-17?19:57??CSharpSpider\CSharpSpider\obj\Debug\GenerateResource.write.1.tlog
?????文件????????936??2017-04-17?19:59??CSharpSpider\CSharpSpider\obj\Debug\Spider.csproj.FileListAbsolute.txt
?????文件????????774??2011-05-14?15:27??CSharpSpider\CSharpSpider\obj\Debug\Spider.csproj.GenerateResource.Cache
?????文件??????32768??2017-04-17?19:57??CSharpSpider\CSharpSpider\obj\Debug\Spider.exe
?????文件??????67072??2017-04-17?19:57??CSharpSpider\CSharpSpider\obj\Debug\Spider.pdb
?????文件??????55432??2003-08-15?21:06??CSharpSpider\CSharpSpider\obj\Debug\Spider.projdata
?????文件????????180??2017-04-17?19:57??CSharpSpider\CSharpSpider\obj\Debug\Spider.SpiderForm.resources
????..AD...?????????0??2011-06-11?12:40??CSharpSpider\CSharpSpider\obj\Debug\temp
............此處省略22個文件信息
評論
共有 條評論