看到有人在 http://v2ex.com/t/269567 求助,准备在 @hzlzh 脚本基础上增加一个 exurl
自己刚开始学 Python 不久,能力不足,目前卡在从下面 POST 返回的代码中提取 http://test.long.url/ 这个返回的链接,其余都差不多了
<table id="response" border="0" cellpadding="0" cellspacing="0">
<tr><td class="shorturl">http://test/shorturl</td><td class="longurl"><a href="http://test.long.url/" target="_blank">http://test.long.url/</a></td></tr> </table>
看了下面两个帖子弄了半天还是没搞定,求助各位
- http://doc.scrapy.org/en/latest/topics/selectors.html
- https://www.crummy.com/software/BeautifulSoup/bs4/doc/
先谢谢各位~