china-testing/python-api-tesing

some suggestion for urldecode

aauutthh opened this issue · 0 comments

在python-api-tesing/book_scraper/requests_allitbooks.py中
url = link.replace(" ","%20")

这个可以用urldecode来做

from urllib.parse imort unquote
unquote(link)