BeautifulSoup库的安装:
安装方法:pip install beautifulsoup4
使用方法: from bs4 import BeautifulSoup 或者 import bs4
html.parser 的作用是制定解析器是html格式的parser,一共可用四种解析器
BeautifulSoup对应一个HTML/XML文档的全部内容
BeautifulSoup库的安装:
安装方法:pip install beautifulsoup4
使用方法: from bs4 import BeautifulSoup 或者 import bs4
html.parser 的作用是制定解析器是html格式的parser,一共可用四种解析器
BeautifulSoup对应一个HTML/XML文档的全部内容