简单的C#网页分析示例 淘宝网页

上传者: liavcq | 上传时间: 2023-04-16 21:36:04 | 文件大小: 195KB | 文件类型: ZIP
这是一个简单的C#编程示例,是我在微软网站上看了一些教程后,第一次用C#语言编码训练的结果,选择了使用使用HttpWebRequest和HttpWebResponse类进行网页获取和正则表达式进行网页分析作为课题。 该训练主要使用HttpWebRequest和HttpWebResponse类实现了网页的申请工作,同时也对网页进行了一些简单的分析。在示例中选取的分析网页是淘宝的交易网页(为了避免相关问题,使用的是一年之前的网页,现在的实际网页应该已经进行修改了),该网页交易过程较典型,且网页代码混乱,对于处理此类网页在该示例中提出了一点思路,大家可以参考。 在网页分析过程中,主要是实现了一个自动购买过程: 1 直接提交登录网页信息,进行登录 2 获取产品网页信息,分析产品属性信息,根据用UI界面设置选项,提交购买信息 3 从购买信息提交过程中获取购买页面,从页面中分析提取交易信息,如果有验证码,弹出窗口提示用户输入验证码,并根据UI界面设置相关选项 4 提交购买请求 5 如果购买成功,提示用户付款

文件下载

资源详情

[{"title":"( 40 个子文件 195KB ) 简单的C#网页分析示例 淘宝网页","children":[{"title":"description","children":[{"title":"Brand.css <span style='color:#111;'> 66.25KB </span>","children":null,"spread":false},{"title":"Layout.css <span style='color:#111;'> 1.69KB </span>","children":null,"spread":false},{"title":"offline.js <span style='color:#111;'> 1.63KB </span>","children":null,"spread":false},{"title":"Galleries.css <span style='color:#111;'> 7.87KB </span>","children":null,"spread":false},{"title":"iframedescription.css <span style='color:#111;'> 3.29KB </span>","children":null,"spread":false}],"spread":true},{"title":"C#","children":[{"title":"TBAuction.sln <span style='color:#111;'> 873B </span>","children":null,"spread":false},{"title":"TBAuction.suo <span style='color:#111;'> 45.00KB </span>","children":null,"spread":false},{"title":"backup.saz <span style='color:#111;'> 130.51KB </span>","children":null,"spread":false},{"title":"TBAuction","children":[{"title":"OrderPageHandleQuestion.cs <span style='color:#111;'> 47.94KB </span>","children":null,"spread":false},{"title":"CheckCodeForm.cs <span style='color:#111;'> 487B </span>","children":null,"spread":false},{"title":"TBAuction_TemporaryKey.pfx <span style='color:#111;'> 1.66KB </span>","children":null,"spread":false},{"title":"QuestionForm.Designer.cs <span style='color:#111;'> 3.43KB </span>","children":null,"spread":false},{"title":"CheckCodeForm.resx <span style='color:#111;'> 5.68KB </span>","children":null,"spread":false},{"title":"Program.cs <span style='color:#111;'> 495B </span>","children":null,"spread":false},{"title":"LogForm.resx <span style='color:#111;'> 5.68KB </span>","children":null,"spread":false},{"title":"QuestionForm.resx <span style='color:#111;'> 5.68KB </span>","children":null,"spread":false},{"title":"OrderPageHandle.cs <span style='color:#111;'> 41.33KB </span>","children":null,"spread":false},{"title":"QuestionForm.cs <span style='color:#111;'> 485B </span>","children":null,"spread":false},{"title":"FrmAuction.Designer.cs <span style='color:#111;'> 24.58KB </span>","children":null,"spread":false},{"title":"FrmAuction.resx <span style='color:#111;'> 5.68KB </span>","children":null,"spread":false},{"title":"CheckCodeForm.Designer.cs <span style='color:#111;'> 3.53KB </span>","children":null,"spread":false},{"title":"TBAuction.csproj.user <span style='color:#111;'> 478B </span>","children":null,"spread":false},{"title":"AuctionOperations.cs <span style='color:#111;'> 18.81KB </span>","children":null,"spread":false},{"title":"PropertyList.cs <span style='color:#111;'> 4.33KB </span>","children":null,"spread":false},{"title":"PropertyList.resx <span style='color:#111;'> 5.68KB </span>","children":null,"spread":false},{"title":"AuctionLog.cs <span style='color:#111;'> 1.50KB </span>","children":null,"spread":false},{"title":"PropertyList.Designer.cs <span style='color:#111;'> 2.30KB </span>","children":null,"spread":false},{"title":"OrderPageHandleOld.cs <span style='color:#111;'> 47.50KB </span>","children":null,"spread":false},{"title":"LogForm.Designer.cs <span style='color:#111;'> 2.34KB </span>","children":null,"spread":false},{"title":"LogForm.cs <span style='color:#111;'> 524B </span>","children":null,"spread":false},{"title":"ProductPageHandle.cs <span style='color:#111;'> 14.75KB </span>","children":null,"spread":false},{"title":"FrmAuction.cs <span style='color:#111;'> 14.33KB </span>","children":null,"spread":false},{"title":"Properties","children":[{"title":"Resources.resx <span style='color:#111;'> 5.48KB </span>","children":null,"spread":false},{"title":"Settings.settings <span style='color:#111;'> 249B </span>","children":null,"spread":false},{"title":"AssemblyInfo.cs <span style='color:#111;'> 1.34KB </span>","children":null,"spread":false},{"title":"Settings.Designer.cs <span style='color:#111;'> 1.07KB </span>","children":null,"spread":false},{"title":"Resources.Designer.cs <span style='color:#111;'> 2.80KB </span>","children":null,"spread":false}],"spread":false},{"title":"TBAuction.csproj <span style='color:#111;'> 7.37KB </span>","children":null,"spread":false}],"spread":false}],"spread":true},{"title":"description.html <span style='color:#111;'> 10.48KB </span>","children":null,"spread":false},{"title":"license.rtf <span style='color:#111;'> 14.46KB </span>","children":null,"spread":false}],"spread":true}]

评论信息

免责申明

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