大佬
大佬大佬
参考,学习一下
感谢分享
666
谢谢分享
人造人 发表于 2018-10-10 21:31
看一下你的 Pillow 版本,我的是 5.3.0
Pillow 5.3.0
我的pillow版本更新为5.3.0后,还是报错
在这里怎么传图片啊,图片地址是什么
下面是完整报错信息
F:\Anaconda\python.exe G:/python学习/py文件/爬取斗破漫画/download.py
F:\Anaconda\lib\site-packages\PIL\Image.py:2655: UserWarning: image file could not be identified because WEBP support not installed
warnings.warn(message)
Traceback (most recent call last):
File "G:/python学习/py文件/爬取斗破漫画/download.py", line 69, in <module>
DownChapter(content.a['title'], r'http://www.manhuatai.com' + content.a['href'])
File "G:/python学习/py文件/爬取斗破漫画/download.py", line 44, in DownChapter
SaveImage(file_name, byte)
File "G:/python学习/py文件/爬取斗破漫画/download.py", line 24, in SaveImage
img = Image.open(io.BytesIO(byte))
File "F:\Anaconda\lib\site-packages\PIL\Image.py", line 2657, in open
% (filename if filename else fp))
OSError: cannot identify image file <_io.BytesIO object at 0x000001C4F2CEBBA0>
Process finished with exit code 1
学习不敢说看看吧
感谢大佬的分享!
零度体温 发表于 2018-10-11 11:46
我的pillow版本更新为5.3.0后,还是报错
在这里怎么传图片啊,图片地址是什么
下面是完整报错信息
F:\Anaconda\lib\site-packages\PIL\Image.py:2655: UserWarning: image file could not be identified because WEBP support not installed
image file could not be identified because WEBP support not installed
无法识别图像文件,因为WEBP支持没有安装
你是如何安装Pillow的?
重新安装一下Pillow试试
你目前的Pillow不支持WEBP的图像格式
新手来学习一下
人造人 发表于 2018-10-11 12:27
F:\Anaconda\lib\site-packages\PIL\Image.py:2655: UserWarning: image file could not be identified b ...
我是直接安装的annconda包,我把pillow卸载后,再用命令行安装,然后就成功爬取漫画了!
多谢大佬!
多谢大佬!
多谢大佬!
大佬,观摩一下
厉害啊~
感谢楼主的分享,这个有意思,学习看看!
666
{:5_90:}
lLl
感谢分享!
6666