摘要: import requestshtml=requests.get('url')soup=BeautifulSoup(html.text,'lxml') 解析器的种类: html.parser: python自带,但容错性不够高 lxml: 解析速度快,需额外安装(推荐使用) xml: 同lxml库, 阅读全文
posted @ 2020-06-22 17:18 马蹄哒哒 阅读(1002) 评论(0) 推荐(0)