url+lib=urllib
import urillib.request
repose=import urllib.request.urlopen('某个网页')
html=repose.read()
从网站下载一张图片
import urllib.request
response=urllib.request.urlopen('http://placekitten.com/g/300/300')
cat_jpg=response.read()
with open('cat_300_300.jpg','wb') as f:
f.write(cat_jpg)
response=urllib.request.urlopen(链接,数据)
代理