Home >  > raise InvalidSchema(“No connection adapters were found for ‘%s'” % url)

raise InvalidSchema(“No connection adapters were found for ‘%s'” % url)

0

今天这个问题折磨,搞了2小时才搞定。

raise InvalidSchema("No connection adapters were found for '%s'" % url)
requests.exceptions.InvalidSchema: No connection adapters were found for 'https
://sdjr.xueshu.com/'

最后的解决方法:
新开一个txt文件,然后再用notepad打开,转为utf-8编码。

教训:
以后自己写txt的文件的时候还是加上utf-8吧。

暧昧帖

本文暂无标签

发表评论

*

*