- 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
您可能关注的文档
最近下载
- 平凡的世界读书分享.ppt VIP
- 药物化学习题仉文升主编).pdf VIP
- 2025年山东济南高三一模数学试卷及答案.pdf VIP
- 2025年辽宁省委党校在职研究生招生考试(政治理论)历年参考题库含答案详解.docx VIP
- 保险双录标准话术.pptx
- 2025年辽宁省委党校在职研究生招生考试(法学)历年参考题库含答案详解.docx VIP
- 江苏省南通市2025年中考语文试卷(附答案解析).doc VIP
- 《人工智能在机械设计制造及其自动化中的实践》8900字.docx VIP
- 普传(POWTRAN)变频器PI500变频器使用说明书.pdf
- 最新部编版一年级数学下册教案(全册)表格式二次备课.doc VIP
原创力文档

文档评论(0)