Topic: 怎么提取网页中标签a的内容? |
Print this page |
1.怎么提取网页中标签a的内容? | Copy to clipboard |
Posted by: fishman Posted on: 2005-04-13 23:52 <tr><td height=18 bgcolor=#FFFFD6 align=center> <a href=http://news.sohu.com/class=black>新闻</a> <a href=http://sports.sohu.com/class=black>体育</a> <a href=http://business.sohu.com/class=black>财经</a> <a href=http://auto.sohu.com/class=black>汽车</a> <a href=http://house.sohu.com/class=black>房产</a> </td></tr> 如何去获得关键字为‘汽车’的 链接? 请高手指点一下。不用写代码,就是大致怎么实现,用哪个包里的什么方法之类的就可以了(当然有代码指点更好哦,^_^)。 |
2.Re:怎么提取网页中标签a的内容? [Re: fishman] | Copy to clipboard |
Posted by: wuyunlong Posted on: 2005-04-14 08:52 用正则表达式区匹配搜索 |
Powered by Jute Powerful Forum® Version Jute 1.5.6 Ent Copyright © 2002-2021 Cjsdn Team. All Righits Reserved. 闽ICP备05005120号-1 客服电话 18559299278 客服信箱 714923@qq.com 客服QQ 714923 |