• 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中文文档

 

 

 

 

 

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-09-30
  • 2022-12-23
  • 2022-12-23
  • 2021-07-07
  • 2021-06-23
猜你喜欢
  • 2021-08-21
  • 2022-12-23
  • 2021-07-16
  • 2022-12-23
  • 2021-12-15
  • 2021-07-23
相关资源
相似解决方案