当前位置:主页 > 软件编程 > Python代码 >

python3.6使用urllib完成下载的实例

时间:2021-05-01 09:34:34 | 栏目:Python代码 | 点击:

如下所示:

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()

您可能感兴趣的文章:

相关文章