china-testing / python-api-tesing

python测试开发库 中文版(持续更新)及书籍下载。公众号:pythontesting
https://www.jianshu.com/u/69f40328d4f0
2.37k stars 881 forks source link

some suggestion for urldecode #1

Open aauutthh opened 5 years ago

aauutthh commented 5 years ago

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

这个可以用urldecode来做

from urllib.parse imort unquote unquote(link)