自动解析HTML代码,生成所有可用Xpath

上传者: cosmokey | 上传时间: 2021-08-21 00:37:11 | 文件大小: 103KB | 文件类型: ZIP
由于最近需要对网站进行数据提取,故是用Xpath,在网上并没有找到可以自动生成Xpath。 所以抽出一点时间,赶出来一个可以自动生成Xpath的小工具,并支持在生成好的Xpath中进行匹配自己需要的内容,并输入对应的Xpath。 该工具,暂只支持HTML,以后可以优化,如果有朋友喜欢,可以自行修改。 上传文件包含源代码,由于是新手,所以代码很乱,希望大家别介意。

文件下载

资源详情

[{"title":"( 25 个子文件 103KB ) 自动解析HTML代码,生成所有可用Xpath","children":[{"title":"XpathTest","children":[{"title":"XpathTest.suo <span style='color:#111;'> 19.00KB </span>","children":null,"spread":false},{"title":"XpathTest","children":[{"title":"XpathTest.csproj <span style='color:#111;'> 3.63KB </span>","children":null,"spread":false},{"title":"Form1.cs <span style='color:#111;'> 6.86KB </span>","children":null,"spread":false},{"title":"bin","children":[{"title":"Debug","children":[{"title":"HtmlAgilityPack.dll <span style='color:#111;'> 132.00KB </span>","children":null,"spread":false},{"title":"XpathTest.exe <span style='color:#111;'> 15.50KB </span>","children":null,"spread":false},{"title":"XpathTest.vshost.exe <span style='color:#111;'> 11.34KB </span>","children":null,"spread":false},{"title":"XpathTest.pdb <span style='color:#111;'> 31.50KB </span>","children":null,"spread":false}],"spread":true}],"spread":true},{"title":"obj","children":[{"title":"x86","children":[{"title":"Debug","children":[{"title":"XpathTest.Form1.resources <span style='color:#111;'> 180B </span>","children":null,"spread":false},{"title":"XpathTest.csproj.FileListAbsolute.txt <span style='color:#111;'> 1.04KB </span>","children":null,"spread":false},{"title":"ResGen.read.1.tlog <span style='color:#111;'> 4.14KB </span>","children":null,"spread":false},{"title":"ResolveAssemblyReference.cache <span style='color:#111;'> 3.98KB </span>","children":null,"spread":false},{"title":"DesignTimeResolveAssemblyReferencesInput.cache <span style='color:#111;'> 6.09KB </span>","children":null,"spread":false},{"title":"ResGen.write.1.tlog <span style='color:#111;'> 1.21KB </span>","children":null,"spread":false},{"title":"TempPE","children":null,"spread":false},{"title":"XpathTest.exe <span style='color:#111;'> 15.50KB </span>","children":null,"spread":false},{"title":"XpathTest.pdb <span style='color:#111;'> 31.50KB </span>","children":null,"spread":false},{"title":"XpathTest.Properties.Resources.resources <span style='color:#111;'> 180B </span>","children":null,"spread":false}],"spread":true}],"spread":true}],"spread":true},{"title":"Properties","children":[{"title":"Resources.Designer.cs <span style='color:#111;'> 2.78KB </span>","children":null,"spread":false},{"title":"Settings.settings <span style='color:#111;'> 249B </span>","children":null,"spread":false},{"title":"Resources.resx <span style='color:#111;'> 5.48KB </span>","children":null,"spread":false},{"title":"Settings.Designer.cs <span style='color:#111;'> 1.07KB </span>","children":null,"spread":false},{"title":"AssemblyInfo.cs <span style='color:#111;'> 1.41KB </span>","children":null,"spread":false}],"spread":true},{"title":"Program.cs <span style='color:#111;'> 501B </span>","children":null,"spread":false},{"title":"Form1.Designer.cs <span style='color:#111;'> 9.38KB </span>","children":null,"spread":false},{"title":"Form1.resx <span style='color:#111;'> 5.88KB </span>","children":null,"spread":false}],"spread":true},{"title":"XpathTest.sln <span style='color:#111;'> 869B </span>","children":null,"spread":false}],"spread":true}],"spread":true}]

评论信息

  • yyh520520 :
    不是我想要的,但谢谢分享
    2019-11-30
  • stesthu :
    怎么使用啊,想在python中调用 这个,我该怎么实现呢
    2018-06-13
  • u014494177 :
    https://download.csdn.net/download/cosmokey/3537818 不是一样的东西么
    2018-05-24
  • aihui109 :
    有源代码可以学习,不错
    2017-06-02
  • jsyz815696800 :
    效果和想象有差距,只是列表了一下,没有搜索功能
    2016-12-17

免责申明

【只为小站】的资源来自网友分享,仅供学习研究,请务必在下载后24小时内给予删除,不得用于其他任何用途,否则后果自负。基于互联网的特殊性,【只为小站】 无法对用户传输的作品、信息、内容的权属或合法性、合规性、真实性、科学性、完整权、有效性等进行实质审查;无论 【只为小站】 经营者是否已进行审查,用户均应自行承担因其传输的作品、信息、内容而可能或已经产生的侵权或权属纠纷等法律责任。
本站所有资源不代表本站的观点或立场,基于网友分享,根据中国法律《信息网络传播权保护条例》第二十二条之规定,若资源存在侵权或相关问题请联系本站客服人员,zhiweidada#qq.com,请把#换成@,本站将给予最大的支持与配合,做到及时反馈和处理。关于更多版权及免责申明参见 版权及免责申明