scrapy newspaper bug
生活随笔
收集整理的這篇文章主要介紹了
scrapy newspaper bug
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
發現一個newspaper的bug,在github上已修復,但pip下載的包還是有這個錯
fix for "jpeg error with PIL, Can't convert 'NoneType' object to str implicitly"
修復辦法: 打開python27/Lib/site-packages/newspaper/images.py
class Scraper:
? ? def largest_image_url:
把log.debug('using max img ' + max_url)
改為log.debug('using max img {}'.format(max_url))
fix for "jpeg error with PIL, Can't convert 'NoneType' object to str implicitly"
修復辦法: 打開python27/Lib/site-packages/newspaper/images.py
class Scraper:
? ? def largest_image_url:
把log.debug('using max img ' + max_url)
改為log.debug('using max img {}'.format(max_url))
總結
以上是生活随笔為你收集整理的scrapy newspaper bug的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 嵌入式linux 试卷,嵌入式Linux
- 下一篇: 电脑字体模糊_小红书上传视频模糊?做小红