获取网站的信息
来源:互联网 发布:网络真人赌博合成视频 编辑:程序博客网 时间:2024/05/01 11:05
protected void Page_Load(object sender, EventArgs e)
{
if (!IsPostBack)
{
System.Net.WebClient client = new WebClient();
//对于for循环是获取多少天数据,
for (int i = 1; i <= 10; i++)
{
byte[] page = client.DownloadData("哪个网站"+i+"_0.html");
string content = System.Text.Encoding.UTF8.GetString(page);
string regex = "<table[^>]*?>[//s//S]*?</table>";
Regex re = new Regex(regex);
MatchCollection matches = re.Matches(content);
System.Collections.IEnumerator enu = matches.GetEnumerator();
while (enu.MoveNext() && enu.Current != null)
{
Match match = (Match)(enu.Current);
Response.Write("<html>");
Response.Write("<head></head>");
Response.Write("<body style=background-color:#EDF1F5>");
Response.Write(match.Value );
Response.Write("</body>"+ "/r/n");
Response.Write("</html>");
}
}
}
}
- 获取网站的信息
- 获取网站的根目录信息
- HttpRequest获取网站信息的程序示例
- HttpRequest获取网站信息的程序示例
- HttpRequest获取网站信息的程序示例
- Web服务获取网站上的信息
- 获取IIS虚拟网站信息的工具
- 获取指定网站的访问信息
- 获取网站地址的一些信息
- fsockopen获取网站信息
- MFC 获取网站信息
- PhpMyAdmin 网站路径信息获取
- JS获取当前网站信息
- 学术信息的网上检索与获取参考网站
- 如何获取视频网站的信息(土豆例子)
- 获取网站某页面的html信息两种方法
- 获取视频网站上视频的缩略图以及其他信息
- 一个用来获取硬盘信息工具的网站
- 开博啦
- php FILES数组的使用
- 如何掌握计算机专业英语
- MySql索引优化注意
- 更快的写XML的方法
- 获取网站的信息
- 转 Mysql limit 优化,百万至千万级快速分页,--复合索引的引用并应用于轻量级框架
- (二十一)红与黑 - 2
- 用java教你学会截图
- how to install apache, PHP and MySQL on Linux 3
- (二十一)红与黑 - 3
- UML、RUP和Zachman框架:完美结合
- 安装boost1.4.2
- 细节很重要 - 平安信用卡的注销