google-images-download脱坑指南

官方文档:https://google-images-download.readthedocs.io/en/latest/

总结:不好用维护差

官方文档安装的gui的也没有说啥版本
现在的版本在Python2.7里不支持非ascii编码,在python3.7里不支持非utf-8编码(中文没问题但是法语等不支持)

python3语言编码问题

print(iteration.encode('raw_unicode_escape').decode('utf-8'))

这句默认的把编码转换到unicode然后重新decode到utf-8,但是输入中文没问题,输入其他特殊字符的时候会导致错误说utf-8无法decode 0xfx似乎是unicode的头。

稍微改了一下成功下载了,comment了一个最简单的修改源码方式:

It's a bug while trying to print the exactly name in the utf-8 encoding. if you were using python3, you can just git clone the project and remove the decode in google_images_download/google_images_download.py like this:
print(iteration.encode('raw_unicode_escape').decode(&
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值