The python crawler uses urllib.request.urlretrieve () to save the picture locally, and the picture has no content.

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

clipboard.png

x=0
for itemm in data2:



clipboard.png 360urlgoole:

clipboard.png

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.

Mar.06,2022

I tried this address. http://pic.jj20.com/up/allimg.

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b38272-4ed56.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b38272-4ed56.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?