我输入了一定的页数,下载了一段时间后
Traceback (most recent call last):
File "
yandeDL.py", line 61, in <module>
main()
File "
yandeDL.py", line 55, in main
MultiPageDownload()
File "
yandeDL.py", line 27, in MultiPageDownload
coreDL(crawler.getSource(next_page_url))
File "
yandeDL.py", line 14, in coreDL
crawler.getImg(dLink, filename_list)
File "/root/yandedl/
crawler.py", line 123, in getImg
urllib.request.urlretrieve(x[2:-2], filename_list[count])
File "/usr/local/lib/python3.4/urllib/
request.py", line 219, in urlretrieve
% (read, size), result)
urllib.error.ContentTooShortError: <urlopen error retrieval incomplete: got only 196325 out of 255091 bytes>
这么显示然后就停止了,是什么原因?