爬取网页数据
import urllib.request # r=urllib.request.urlopen("http://183.247.167.54:7009/#/map") # print(r.read())#爬取网页源码 r=urllib.request.urlopen("http://183.247.167.54:7009/static/img/logo.ac2237a.png") rs=r.read() with open("1.png","wb") as a: a.write(rs)#爬取图片