安装bs4 pip install beautifulsoup4 参考资料: bs4 BeautifulSoup - 简书 Python BS4库的安装与使用详解 Python网页爬虫之BS4(Beautiful Soup)用法及案例_houzeyu666的博客-CSDN博客_bs4和beautifulsoup