以文本方式查看主题 - Foxtable(狐表) (http://foxtable.com/bbs/index.asp) -- 专家坐堂 (http://foxtable.com/bbs/list.asp?boardid=2) ---- 怎么 在 网页代码中提取 图片地址 (http://foxtable.com/bbs/dispbbs.asp?boardid=2&id=57650) |
-- 作者:qianqian1530 -- 发布时间:2014/9/28 15:55:00 -- 怎么 在 网页代码中提取 图片地址 怎么贴提取 < img src="*" /> 这句话呢·· 以下内容为程序代码: 1 <p><span style="font-family: simsun; font-size: 16pt;"><span style="color: black;"><span style="color: #ff6600;">【商品名称】:</span></span></span><span style="font-size: 16pt;"> 三星Note3手机电池后盖 超薄浮雕手机壳</span></p><p> </p><p><span style="font-family: simsun; font-size: 16pt;"><span style="color: black;"><span style="color: #ff6600;">【商品颜色】:<span style="color: #000000;">多款可选</span></span></span></span></p><p> </p><p><span style="font-family: simsun; font-size: 16pt;"><span style="color: black;"><span style="color: #ff6600;">【商品说明】:</span></span></span> <span style="font-size: 16pt;">优质PC</span></p><p> </p><p> </p><p style="line-height: 1.4; color: #404040; font-size: 16px;"><span style="font-size: 18px;"><span style="color: #000000;"><span style="font-family: microsoft yahei;">.采用独特的彩绘工艺,浮雕手感,图案炫彩精美,让您的爱机独具风格</span></span></span></p><p style="line-height: 1.4; color: #404040; font-size: 16px;"> </p><p> </p><p style="line-height: 1.4; color: #404040; font-size: 16px;"><span style="font-size: 18px;"><span style="color: #000000;"><span style="font-family: microsoft yahei;">.采用德国拜耳UV高端PC精制而成,外观精致,触感细腻</span></span></span></p><p style="line-height: 1.4; color: #404040; font-size: 16px;"> </p><p style="line-height: 1.4; color: #404040; font-size: 16px;"><span style="font-size: 18px;"><span style="color: #000000;"><span style="font-family: microsoft yahei;">.贴合度非常好,提供全方位的完美保护,使之免受外界伤害</span></span></span></p><p style="line-height: 1.4; color: #404040; font-size: 16px;"> </p><p> </p><p style="line-height: 1.4; color: #404040; font-size: 16px;"><span style="font-size: 18px;"><span style="color: #000000;"><span style="font-family: microsoft yahei;">.超强孔位设计,每一个孔位都非常准确地配合设计,操作非常方便</span></span></span></p><p style="line-height: 1.4; color: #404040; font-size: 16px;"> </p><p> </p><p><span style="line-height: 1.4; font-family: microsoft yahei; color: #000000; font-size: 18px;">.不只是手机壳,还是精美可爱的图案,让您的爱机变幻如甜美的糖果般炫目迷人</span></p><p> </p><p> </p><p><span style="line-height: 1.4; font-family: microsoft yahei; color: #000000; font-size: 18px;"><span style="color: #ff0000; font-size: x-large;">.超薄电池后盖,需要拆卸原装后盖后方可安装上</span></span> </p><p> </p><p><span style="font-size: 16pt;"><span style="color: #ff6600;">【适用机型】:</span></span><span style="font-size: 16pt;">三星Note3 n9000</span></p><p> </p><p><span style="font-size: 16pt;"><span style="color: black;"><span style="color: #ff6600;">【温馨提示】:</span>本店所出售的产品均为实物拍摄</span><span style="font-family: simsun; color: black;">(</span><span style="color: black;">不排除跟实物有一点色差、以实物为准</span><span style="font-family: simsun; color: black;">)</span><span style="color: black;">;买家收到货后,请马上检查所发产品是否有漏发、错发,有问题及时跟我们的客服沟通,我们会第一时间给你解决问题,谢谢配合。</span></span></p><p><span style="font-size: 16pt;"><span style="color: black;"><span style="font-size: 16pt;"><span style="color: black;"><span style="color: #ff6600;"><span style="font-size: 14pt;">【与我联系】</span>:<a href="/images/w/35425753776/msg.aw" target="_blank"><img border="0" src="/images/w/35425753776/online.gif" style="zoom: 1; visibility: visible;" /></a></span></span></span></span></span></p><p><span style="font-size: 16pt;"><span style="color: black;"><span style="font-size: 16pt;"><span style="color: black;"><span style="color: #ff6600;"><img src="/images/w/35425753776/1041181061_557133308.jpg" /><br class="img-brk" /><br class="img-brk" /><img src="/images/w/35425753776/1041181088_557133308.jpg" /><br class="img-brk" /><br class="img-brk" /><img src="/images/w/35425753776/1041181004_557133308.jpg" /><br class="img-brk" /><br class="img-brk" /><img src="/images/w/35425753776/1041170997_557133308.jpg" /><br class="img-brk" /><br class="img-brk" /><img src="/images/w/35425753776/1041181010_557133308.jpg" /><br class="img-brk" /><br class="img-brk" /><img src="/images/w/35425753776/1041181022_557133308.jpg" /><br class="img-brk" /><br class="img-brk" /><img src="/images/w/35425753776/1041181031_557133308.jpg" /><br class="img-brk" /><br class="img-brk" /><img src="/images/w/35425753776/1041181044_557133308.jpg" /><br class="img-brk" /><br class="img-brk" /><img src="/images/w/35425753776/1041181050_557133308.jpg" /><br class="img-brk" /><br class="img-brk" /><img src="/images/w/35425753776/1041181078_557133308.jpg" /><br class="img-brk" /><br class="img-brk" /></span></span></span></span></span></p><p> </p><p><span style="font-size: 16pt;"><span style="color: black;"><span style="font-size: 16pt;"><span style="color: black;"><span style="color: #ff6600;"><span style="font-size: 14pt;">【与</span></span></span></span></span></span><span style="font-size: 16pt;"><span style="color: black;"><span style="font-size: 16pt;"><span style="color: black;"><span style="color: #ff6600;"><span style="font-size: 14pt;">我联系】</span>:<a href="/images/w/35425753776/msg.aw" target="_blank"><img border="0" src="/images/w/35425753776/online.gif" style="zoom: 1; visibility: visible;" /></a></span></span></span></span></span></p><p> </p><p><span style="font-family: simsun; color: #800000; font-size: 24pt;">公司介绍:</span></p><p style="text-align: left;"> </p><p style="text-align: left;"><span style="font-family: simsun; color: #000000; font-size: 15pt;"><strong><span style="color: #0000ff;"><a href="/images/w/35425753776/" target="_blank"><span style="color: #0000ff;">深圳市飞宇康科技有限公司</span></a></span></strong>从事苹果周边配件(<span style="color: #0000ff;"><a href="/images/w/35425753776/" target="_blank"><span style="color: #0000ff;">手机壳</span></a></span>、<span style="color: #0000ff;"><a href="/images/w/35425753776/" target="_blank"><span style="color: #0000ff;">保护套</span></a></span>)的研发、制造与分销,产品领域包括通讯类电子配件及消费类电子产品。秉承“缔造品质典范”的企业发展愿景,不断打造和完善自主品牌产品,不断迎合消费者日益见长的品质需求。</span></p><p style="text-align: left;"> </p><p style="text-align: left;"><span style="font-family: simsun; color: #000000; font-size: 15pt;">主营产品有<strong><span style="color: #0000ff;"><a href="/images/w/35425753776/page/offerlist_10201173.htm?sortType=showcase" target="_blank"><span style="color: #0000ff;">iphone4 4S</span></a></span></strong>、<span style="color: #0000ff;"><strong><a href="/images/w/35425753776/page/offerlist_10201180.htm?sortType=showcase" target="_blank"><span style="color: #0000ff;">ipad2/3</span></a></strong></span>、<strong><span style="color: #0000ff;"><a href="/images/w/35425753776/page/offerlist_11936711.htm?sortType=showcase" target="_blank"><span style="color: #0000ff;">三星samsung</span></a></span></strong>、<span style="color: #0000ff;"><strong><a href="/images/w/35425753776/page/offerlist_10201167.htm?sortType=showcase" target="_blank"><span style="color: #0000ff;">HTC</span></a></strong></span>等热门机型<span style="color: #0000ff;"><a href="/images/w/35425753776/" target="_blank"><span style="color: #0000ff;">手机保护套</span></a></span>;生产经销真皮套、TPU硅胶套、磨砂壳、金属边框;<strong><span style="color: #0000ff;"><a href="/images/w/35425753776/page/offerlist_10201160_10201159.htm?sortType=showcase" target="_blank"><span style="color: #0000ff;">FLY-WORLD</span></a></span></strong>等品牌真皮皮套、手机移动电源、iphone镶钻手机保护壳、韩国时尚手机包、平板电脑智能休眠皮套、支架皮套、内胆包、磨砂低壳,真皮皮套、以及iphone原装充电器 数据转接线、配件等周边产品。</span></p><p><span style="font-family: simsun; color: #000000; font-size: 16pt;"><img height="268" src="/images/w/35425753776/534745101_557133308.gif" width="750" /><br class="img-brk" /><br class="img-brk" /><img height="289" src="/images/w/35425753776/534745100_557133308.jpg" width="737" /><br class="img-brk" /><br class="img-brk" /><br class="img-brk" /></span></p><p> </p><p style="text-align: left;"><span style="font-family: simsun; color: #000000; font-size: 16pt;"> </span></p><p> </p> 2 |
-- 作者:有点甜 -- 发布时间:2014/9/28 16:00:00 -- 请贴上完整网址或者完整页面代码
并上传对应例子 |
-- 作者:qianqian1530 -- 发布时间:2014/9/28 16:05:00 -- 网页是这个:http://dsc.taobaocdn.com/i8/310/040/31204637737/TB1ZFk9FFXXXXXWXFXX8qtpFXXX.desc%7Cvar%5Edesc%3Blang%5Egbk%3Bsign%5Ef3cc734a7edb4652fcce262c53ef1fc4%3Bt%5E1411541046 例子还没开始呢, 我先是把 上面这样的 网页 代码,放到 ex表格里, 再导入狐表里。 导入的时候 只提取 < img src="*" />
|
-- 作者:菲舍尔 -- 发布时间:2014/9/28 16:09:00 -- dim doc as windows.forms.htmldocument = 你要分析的文档 for each element as windows.forms.htmlelement in doc.getelementsbytagname("img") output.show(element.GetAttribute("herf")) next |
-- 作者:有点甜 -- 发布时间:2014/9/28 16:10:00 -- 参考4楼
|
-- 作者:Bin -- 发布时间:2014/9/28 16:10:00 -- Dim str As String = FileSys.ReadAllText("C:\\Users\\foxtable1\\Desktop\\1.txt",Encoding.Default) For Each mh As RegularExpressions.Match In RegularExpressions.Regex.Matches(str,"<img[^>]*>") MessageBox.show(mh.ToString()) Next
|