Request Beautifulsoup lxml读取网页代码

作者: shaoliang 2020-03-31 11:17   访问数:818

pip install lxml

pip install bs4

pip install Beautifulsoup




2020-03-31 23-16-45 的屏幕截图.png

bs4 BeautifulSoup
requests
htmldoc = requests.get()
htmldoc.encoding = htmldoc.status_code
bs=BeautifulSoup(htmldoc.text,)
(bs)

鲁ICP备19029146号-1 管理
CopyRight@51dr.top 页面打开时间 0.0302 秒.