免费的文库下载器源代码.docVIP

  • 462
  • 0
  • 约15.7万字
  • 约 31页
  • 2017-08-06 发布于河南
  • 举报
免费的文库下载器源代码

百度文库下载器源代码 文件结构 Zlib用于豆丁文档的解压缩,自己网上找开源代码,我也网上下载的,由于文件较多,所以没有贴出来,如果需要,跟帖我可以给链接,DOCIN.CS是支持豆丁网的下载类,由于还不支持V2版本,所以暂时不公开 Global.csusing System;using System.Text;using System.Xml;using System.IO;using zlib;namespace DocDown{ public class Global { public class _DATA_REGEXS { public static readonly string URL = @^((http://www\.docin\.com/p-\d{8}\.html)|(http://wenku\.baidu\.com/view/[0-9a-z]{24}\.html))$; public static readonly string DOCIN_DOC_INFO = @^[\s\S]*playcontent = (\{.*?})[\s\S]*$; public static readonly string BAIDU_DOC_INFO = @^[\s\S]*DOC_INFO=(\{.*?})[\s\S]*$; public static readonly string BAIDU_DATA = @^(\{[\s\S]+?\})[\s\S]*?((CWS|FWS)\t[\s\S]*?)+$; public static readonly string BAIDU_DATA_HEADER = @^(\{[\s\S]+?\})([\s\S]+)$; public static readonly string BAIDU_DATA_SWF = @(CWS|FWS)\t[\s\S]*?(?=(CWS|FWS)\t|$); } public class _DATA_URL_FROMAT { public static readonly string BAIDU_DATA_URL_TXT = @/play/{0}?pn={1}rn={2}; public static readonly string BAIDU_DATA_URL_NOT_TXT = @/play/{0}?pn={1}rn={2}; public static readonly string DOCIN_DATA_URL_ONE = @/docin_{0}.docin; public static readonly string DOCIN_DATA_URL_Next = @/docin_{0}_{1}.docin; } public class _FILE_PATH { public static readonly string TEMP_SMALL_PATH = @TEMP; public static readonly string TEMP_FULL_PATH = @{0}\TEMP; public static readonly string SWF_SMALL_PATH = @TEMP\{0}.SWF; public static readonly string SWF_FULL_PATH = @{0}\TEMP\{1}.SWF; public static readonly string JPG_SMALL_PATH = @TEMP\{0}.JPG; public static readonly string JPG_FULL_PATH = @{0}\TEMP\{1}.JPG; public static readonly string PDF_FULL_PATH = @{0}\{1}.PDF; public static readonly string TXT_FULL_PATH = @{0}\{1}.TXT; public static readonly string DOCIN_PATH = @TEMP\{0

文档评论(0)

1亿VIP精品文档

相关文档