from urllib.parse import quote import string #解决请求路径中含义中文或特殊字符 url_ = quote(new_url, safe=string.printable);
Python 爬虫 URL中存在中文或特殊符号无法请求的解决方法
最新推荐文章于 2023-08-09 23:43:31 发布
from urllib.parse import quote import string #解决请求路径中含义中文或特殊字符 url_ = quote(new_url, safe=string.printable);