解决方案:
import urllib.requestfrom bs4 import BeautifulSoup site = 'http://www.pm25.com/' html = urllib.request.urlopen(site) soup = BeautifulSoup(html,'html.parser')
解决方案:
import urllib.requestfrom bs4 import BeautifulSoup site = 'http://www.pm25.com/' html = urllib.request.urlopen(site) soup = BeautifulSoup(html,'html.parser')
相关文章: