页面源码分析
# 爬取天气
import urllib.request
from bs4 import BeautifulSoup
# 下载数据
url = "http://www.weather.com.cn/weather/101250101.shtml"
content = urllib.request.urlopen(url).read
页面源码分析
# 爬取天气
import urllib.request
from bs4 import BeautifulSoup
# 下载数据
url = "http://www.weather.com.cn/weather/101250101.shtml"
content = urllib.request.urlopen(url).read