其实是前端请求解码错误导致
python 代码
from urllib.parse import quote
key = "口红"
url = "https://list.tmall.com/ajax/allBrandShowForGaiBan.htm?q={}"
url = self.url.format(quote(key.encode('gbk')))
其实是前端请求解码错误导致
python 代码
from urllib.parse import quote
key = "口红"
url = "https://list.tmall.com/ajax/allBrandShowForGaiBan.htm?q={}"
url = self.url.format(quote(key.encode('gbk')))