爬取网站数据
imgContent = content.find( name = "img")
imgName = imgContent.attrs["alt"] imgUrl = imgContent.attrs["src"] imgResponse = requests.get(imgUrl,headers = headers)
img = imgResponse.content
filePath = f"C:\\Users\\Administrator\\Desktop\\code\\{count}.jpg"
评论