您的位置:首页 > 其它

【bs4】安装beautifulsoup

2014-01-13 21:22 260 查看
Debian/Ubuntu,install

$ apt-get install python-bs4


easy_install/pip

$ easy_install beautifulsoup4

$ pip install beautifulsoup4


安装第三方分析器

bs4只有py2的代码,安装在py3下会很麻烦

bs4支持HTML parser,也可以支持第三方的分析器

lxml

$ apt-get install python-lxml
$ easy_install lxml
$ pip install lxml


html5lib

$ apt-get install python-html5lib
$ easy_install html5lib
$ pip install html5lib


BeautifulSoup4中文文档
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: