public partial class GetData : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{

//string path = Server.MapPath("~/css/css.css");
//using (StreamReader sr = new StreamReader(path))
//{
// string all_code = sr.ReadToEnd();
// ArrayList my_list = new ArrayList();
// //string p = @"http://([\w-]+\.)+[\w-]+(/[\w- ./?%&=]*)?";
// string p = @"background\:url\((?<ImgUrl>.*?)\)";
// //string p = @"(?<=\b(?:src\s*=\s*['""]?|background:\s*.*?\burl\b\()(?!http:))/?([^'""\s\)]+)";
// Regex re = new Regex(p, RegexOptions.IgnoreCase);
// MatchCollection mc = re.Matches(all_code);

// for (int i = 0; i <= mc.Count - 1; i++)
// {
// bool _foo = false;
// string name = "http://d1mr.com/" + mc[i].ToString().TrimEnd(')').Replace("background:url(", "");
// //string name = mc[i].ToString();
// foreach (string list in my_list)
// {
// if (name == list)
// {
// _foo = true;
// break;
// }
// }//过滤
// if (!_foo)
// {
// try
// {
// WebClient wc = new WebClient();
// wc.DownloadFile(name, Server.MapPath("~/images") + @"\" + Path.GetFileName(name));
// }
// catch (Exception ex)
// {

// }

// //images
// //Response.Write(name + "\n");
// }

// }
//}

//string path = Server.MapPath("~/images1");
//foreach (string item in Directory.GetFiles(path))
//{
// //string pageHtml = LeYour.Common.WebCatcher.GetPageData("http://localhost:3333/经典香氛_美容健康_YOKA时尚网.htm");
// string pageHtml = LeYour.Common.WebCatcher.GetPageData("http://localhost:3333/shoumm/" + Path.GetFileName(item));
// Regex searchTitle = new Regex("<title>(?<title>[\\s\\S]*?)<\\/title>", RegexOptions.IgnoreCase);
// Match oM = searchTitle.Match(pageHtml);

// if (oM.Success)
// {
// Response.Write(oM.Groups["title"].Value.Trim());
// string matchEvents = "<table width=\"600\" border=\"0\" cellpadding=\"3\".*?</table>";
// string Content = Regex.Match(pageHtml, matchEvents, RegexOptions.Singleline).Value;

// if (!string.IsNullOrEmpty(Content))
// {
// ICommon common = CommonProxy.GetProxy("MeiRong.MeiRong_Temp", "ID");
// Dictionary<string, object> dict = new Dictionary<string, object>();
// dict.Add("Title", oM.Groups["title"].Value.Trim());
// dict.Add("Content", Content);
// dict.Add("CreateTime", DateTime.Now);
// common.Insert(dict);
// //Response.Write(Events);
// }

// }

//}

//string matchEvents = "(<table width=\"600\" border=\"0\" cellpadding=\"3\".*?</table>)(?:\\s*<div align=\"center\">)";

// string path = Server.MapPath("~/hufu[1].txt");
// using (StreamReader sr = new StreamReader(path))
// {
// string all_code = sr.ReadToEnd();
// ArrayList my_list = new ArrayList();
// string p = @"http://([\w-]+\.)+[\w-]+(/[\w- ./?%&=]*)?";
// Regex re = new Regex(p, RegexOptions.IgnoreCase);
// MatchCollection mc = re.Matches(all_code);

// for (int i = 0; i <= mc.Count - 1; i++)
// {
// bool _foo = false;
// string name = mc[i].ToString();
// foreach (string list in my_list)
// {
// if (name == list)
// {
// _foo = true;
// break;
// }
// }//过滤
// if (!_foo)
// {
// try
// {
// WebClient wc = new WebClient();
// wc.DownloadFile(name, Server.MapPath("~/images") + @"\" + Path.GetFileName(name));
// }
// catch
// {

// }

// //images
// //Response.Write(name + "\n");
// }

// }
// }
}

getdata的更多相关文章

  1. dataTransfer.getData()在dragover,dragenter,dragleave中无法获取数据的问题

    做拖拽相关效果时,想在ondragover时给被拖拽元素添加一些样式,于是在dragover事件的函数中通过dataTransfer.getData()获取在dragstart中设置的数据,然而发现d ...

  2. [DFNews] GetData也出取证软件了

    从事计算机取证的应该都听说过MIP(Mount Image Pro).VFC仿真和Recover My Files,上述三个应用比较广泛的软件都是GetData公司的产品.GetData现在也推出了自 ...

  3. EasyUI datagrid数据表格的函数getData返回来的是什么

    EasyUI datagrid数据表格的函数getData返回来的是什么? 他返回来的是这么一个对象: Object { rows=[10], total=15} 其中rows就是每一行的数据,是这些 ...

  4. 在jQuery.getData中renderCallback使用不同创建方式的结果

    JavaScript 中需要创建函数的话,有两种方法:函数声明.函数表达式,各自写法如下:// 方法一:函数声明function foo() {}// 方法二:函数表达式var foo = funct ...

  5. 用jquery设置的值,miniui.getData取不到

    用jquery设置的值,miniui.getData取不到

  6. android 手机拍照返回 Intent==null 以及intent.getData==null

    手机拍照第一种情况:private void takePicture(){ Intent intent = new Intent(MediaStore.ACTION_IMAGE_CAPTURE);Si ...

  7. :c#的remoting里,CallContext.GetData获得的对象老是空的?该怎么处理

    寻求帮助:c#的remoting里,CallContext.GetData获得的对象老是空的?如题,检查了很多次了,也比对了msdn里的例子,没觉得有问题啊..为什么老是得到的null的?不知道哪里出 ...

  8. 9.使用GetData,Children实现对ZNode的监控

    一. zookeeper中的watcher 1. exists :监控的是[znode]的CUD 的操作   2. getdata 的时候注册的watcher[U,D 监控]update delete ...

  9. js【面向过程编程】、好、 【init()、 GetData()、 bindData()、bindDom、 bindEvent()、buyProduct()、AddProductToCart()】*****************

    1. 一般页面开发方式 [可读性差.可维护性差]------初级开发工程师 一般页面编写方法 var name = 'iphone8' var description = '手机中的战斗机 ' var ...

随机推荐

  1. C# 常见集合之前的转换

    1,从System.String[]转到List<System.String> System.String[] str={"str","string" ...

  2. WCF学习心得------(七)消息协定

    第七章 消息协定 7.1 消息协定概述 通常情况下,在定义消息的架构时只使用数据协定就足够,但是有时需要精确控制如何将类型映射到通过网络传输的SOAP消息.对于这种情况,通常解决方案是插入自定义的SO ...

  3. 【linux】find命令详解

    find命令格式:find [搜索范围][匹配条件] -name 参数:按照名字查找 [root@andon ~]# find /root -name test ###精确查找 /root/test ...

  4. 【oracle】数据库、表空间、用户、数据表之间的关系

    来自为知笔记(Wiz) 附件列表 新建_032515_030437_PM.jpg

  5. CentOS生产机器禁止ROOT远程SSH登录

    方法一 很多站长拥有linux主机,不管是虚拟机还是实体机,一般我们远程连接的时候,都是用的ssh(SecureShell建立在应用层和传输层基础上的安全协议). 它默认的端口22,默认使用root也 ...

  6. 三星电视删除USB播放记录

    当使用三星UA40系列电视机播放USB设备中的文件后,会将播放的历史记录存储在电视里.如果想要清除这些播放记录,需要将电视机复位,操作方法如下: 这里提醒您:复位后电视的所有设置都将恢复为出厂默认设置 ...

  7. 【mybatis】之批量添加

    mybatis批量添加xml <insert id="batchCreate"> INSERT INTO `roomer` (`order`,name,idCard,m ...

  8. 什么是编解码器codec

    编解码器(英语:codec)指的是一个能够对一个信号或者一个数据流进行编解码操作的设备或者程序.这里指的变换既包括将信号或者数据流进行编码(通常是为了传输.存储或者加密)或者提获取到一个编码流的操作, ...

  9. hbase读写流程

    一. Hbase读流程 META表记录着表的原信息,根据rowkey查询META表,获取所在region信息 客户端去相应的regionServer查询数据,先查询memStore(memstore是 ...

  10. PLSQL_性能优化系列07_Oracle Parse Bind Variables解析绑定变量

    2014-09-25 Created By BaoXinjian