Python 爬虫 URL中存在中文或特殊符号无法请求的解决方法

来源:互联网 发布:淘宝买手机是正品吗 编辑:程序博客网 时间:2024/06/08 06:57
from urllib.parse import quoteimport string#解决请求路径中含义中文或特殊字符url_ = quote(new_url, safe=string.printable); 

阅读全文
1 0