資源簡(jiǎn)介
C#小說采集源碼,類別分明,很不錯(cuò)的小說采集,把代碼改一下就是自己的了。

代碼片段和文件信息
using?System;
using?System.Collections.Generic;
using?System.Text;
namespace?EBookReader.Client
{
????public?static?class?Help
????{
????????private?static?string?mainHelp;
????????private?static?string?maintitle;
????????static?Help()
????????{
????????????StringBuilder?sb?=?new?StringBuilder();
????????????sb.AppendLine(“站點(diǎn)小說采集器?2.0?-By?Leven“);
????????????sb.AppendLine(“幫助信息:?-help“);
????????????sb.AppendLine(“使用命令-help獲取幫助信息“);
????????????maintitle?=?sb.ToString();
????????????sb?=?new?StringBuilder();
????????????sb.AppendLine(“-help?系統(tǒng)幫助.“);
????????????sb.AppendLine(“-add?name?新增命名為\“name\“的配置文件.“);
????????????sb.AppendLine(“-get?url?獲取并解析頁(yè)面URL必須提供“);
????????????sb.AppendLine(“-save?name?將解析完成的信息保存在文件name中缺省為小說名“);
????????????sb.AppendLine(“-config?configfile?設(shè)置解析器配置文件configfile的擴(kuò)展名省略必須提供“);
????????????sb.AppendLine(“-type?typename?設(shè)置獲取模式系統(tǒng)有4中type:“);
????????????sb.AppendLine(“\t1:all?獲取頁(yè)面必須為章節(jié)索引頁(yè)系統(tǒng)將小說所有文本保存在文件中缺省選項(xiàng)“);
????????????sb.AppendLine(“\t2:info?獲取頁(yè)面必須為章節(jié)索引頁(yè)只獲取索引頁(yè)面并將索引信息以xml保存.“);
????????????sb.AppendLine(“\t3:chapter?獲取頁(yè)面為某章節(jié)頁(yè)面將該章節(jié)保存.“);
????????????sb.AppendLine(“\t4:xml?此選項(xiàng)必須和-xml同時(shí)使用系統(tǒng)將配置文件中所有章節(jié)保存.“);
????????????sb.AppendLine(“-xml?xmlfile?配置本地章節(jié)索引文件該文件由-type?info創(chuàng)建.“);
????????????mainHelp?=?sb.ToString();
????????}
????????public?static?string?Maintitle
????????{
????????????get?{?return?maintitle;?}
????????}
????????public?static?string?MainHelp
????????{
????????????get?{?return?mainHelp;?}
????????}
????}
}
評(píng)論
共有 條評(píng)論