Python爬虫【解析库之beautifulsoup】

2021-07-13 22:04

阅读:718

from bs4 import BeautifulSoup

html=‘‘‘



Hello





  • Foo

  • Bar

  • Jay



  • Foo

  • Bar




‘‘‘
soup = BeautifulSoup(html,"lxml") # soup = BeautifulSoup(html,"html.parser")


评论


亲,登录后才可以留言!