51Testing软件测试论坛
标题:
python 的 BeautifulSoup 工具
[打印本页]
作者:
素简生香
时间:
2017-11-28 11:07
标题:
python 的 BeautifulSoup 工具
Python 工具 BeautifulSoup 可以很方便的解析 html 的数据,通常结合 urllib2来使用,使用的时候注意以下几点:
1.BeautifulSoup 工具的使用,需要预先通过 pip 工具下载安装,安装时键入 pip install bs4即可;
2.BeautifulSoup 被导入的方式为 from bs4 import BeautifulSoup;
3.urllib2 仅仅负责数据下载,不负责数据提取;
BeautifulSoup 使用的代码示例 回帖可见
作者:
梦想家
时间:
2017-11-28 13:12
赞一个
作者:
海海豚
时间:
2017-11-28 13:14
谢谢分享!~
作者:
dmlemon1
时间:
2017-11-29 10:29
感谢分享
作者:
zhengguanfeng
时间:
2017-12-1 11:49
666
作者:
ntgxlj
时间:
2017-12-1 17:44
作者:
ntgxlj
时间:
2017-12-1 17:44
作者:
阿家猪
时间:
2017-12-13 16:48
欢迎光临 51Testing软件测试论坛 (http://bbs.51testing.com/)
Powered by Discuz! X3.2