会员
周边
新闻
博问
AI培训
云市场
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
sm0nk
Exercise one's inventive mind.
博客园
首页
新随笔
联系
管理
订阅
2015年8月30日
Python实现抓取页面上链接
摘要: 方法一:#coding:utf-8importreimportrequests#获取网页内容r=requests.get('http://www.163.com')data=r.text#利用正则查找所有连接link_list=re.findall(r"(?<=href=\").+?(?=\")|(...
阅读全文
posted @ 2015-08-30 09:19 sm0nk
阅读(555)
评论(0)
推荐(0)
编辑