I use Jupyter Notebook to crawl the url, of the picture I need to save, but use urllib.request.urlretrieve () to save the picture locally, the picture has no content, and the url is opened with no content (the same as I saved locally), but open with goole is a normal picture.
related codes
url=" http://www.jj20.com/bz/zrfg/d."
response=urllib.request.urlopen(url)
html=response.read().decode("gb2312")
soup=BeautifulSoup (html,"lxml")
data=soup.select ("body > div.wzfz.top-main.fix > div > ul.pic2.vvi.fix")
data2=re.findall (" src= "(. +?)" width",str (data))
data2-sharp get a list of picture links here
x=0
for itemm in data2:
360urlgoole:
I have a lot of related content about Baidu, but it is different from other people"s mistakes. I want to know what this is all about, why it is opened in 360browser like this, and how to download the picture through goole browser.