爬虫基础之beautiful soup操作

前面讲了urlib以及request,现在开始soup操作

from bs4 import BeautifulSoup
import requests
html=requests.get('http://www.baidu.com').text
soup=BeautifulSoup(html,'html.parser')
print(soup)
print(type(soup))



猜你喜欢

转载自blog.csdn.net/weixin_40079205/article/details/78564766
今日推荐