python3.6使用 urllib完成下载

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/zhangyingchengqi/article/details/78274738
url = u'http://tieba.baidu.com/f?kw=权利的游戏&ie=utf-8&pn=50'
url = quote(url, safe = string.printable)
response=urllib.request.urlopen(   url   )
response.read()

猜你喜欢

转载自blog.csdn.net/zhangyingchengqi/article/details/78274738