摘要: 在搜索引擎的开发中,我们需要对网页的Html内容进行检索,难免的就需要对Html进行解析。拆分每一个节点并且获取节点间的内容。此文介绍两种C#解析Html的方法。第一种方法:用System.Net.WebClient下载Web Page存到本地文件或者String中,用正则表达式来分析。这个方法可以用在Web Crawler等需要分析很多Web Page的应用中。估计这也是大家最直接,最容易想到的一个方法。转自网上的一个实例:所有的href都抽取出来:usingSystem;usingSystem.Net;usingSystem.Text;usingSystem.Text.RegularExp 阅读全文
posted @ 2014-03-19 00:13 oyzq 阅读(859) 评论(0) 推荐(0) 编辑
摘要: 近日玩网页游戏七雄争霸,觉得还可以,但是玩起来太累,所以想自己开发个辅助试试从网上找到了个《流年网页游戏辅助VIP系列教程》,看了下,遇到了一个问题特来请高手指点。。。。。。代码如下:usingSystem;usingSystem.Collections.Generic;usingSystem.ComponentModel;usingSystem.Data;usingSystem.Drawing;usingSystem.Linq;usingSystem.Text;usingSystem.Windows.Forms;usingSystem.Net;usingSystem.Web;usingSys 阅读全文
posted @ 2013-10-18 13:22 oyzq 阅读(7538) 评论(0) 推荐(0) 编辑