摘要: 网页抓取又称之为网络爬虫,我们用来获取目标网站、目标模块的最新动态,可以直接抓取过来。 我们提供抓取目标的url地址,然后写一个方法,抓取目标url的东西。//获取某个URL下的内容public string getContextByUrl(string url) { WebRequest request = WebRequest.Create(url); HttpWebResponse response = (HttpWebResponse)request.GetResponse(); Stream dataStream = response.GetResponseStre... 阅读全文
posted @ 2013-04-08 11:40 Jason.Lau 阅读(799) 评论(0) 推荐(0) 编辑
摘要: /* .Net/C#: 实现支持断点续传多线程下载的 Http Web 客户端工具类 (C# DIY HttpWebClient)* Reflector 了一下 System.Net.WebClient ,改写或增加了若干:* DownLoad、Upload 相关方法!* DownLoad 相关改动较大!* 增加了 DataReceive、ExceptionOccurrs 事件!* 了解服务器端与客户端交互的 HTTP 协议参阅:* 使文件下载的自定义连接支持 FlashGet 的断点续传多线程链接下载! JSP/Servlet 实现!* http://blog.csdn.net/playyu 阅读全文
posted @ 2013-04-08 11:36 Jason.Lau 阅读(490) 评论(0) 推荐(0) 编辑
摘要: using System;using System.Collections;using System.ComponentModel;using System.Data;using System.Drawing;using System.Drawing.Drawing2D;using System.Drawing.Imaging;using System.Web;using System.Web.SessionState;using System.Web.UI;using System.Web.UI.WebControls;using System.Web.UI.HtmlControls;usi 阅读全文
posted @ 2013-04-08 11:29 Jason.Lau 阅读(359) 评论(0) 推荐(0) 编辑