- 分享
urllib
-
2019-6-6 18:30
-
import urllib.request url = "http://www.baidu.com" # 完整的url # http://www.baidu.com:80/index.html?name=goudanpassword=123#lala response = urllib.request.urlopen(url=url) # print(response.read().decode()) with open("baidu.html", "w", encoding="utf8") as fp: fp.write(response.read().deco ...
-
个人分类: 爬虫笔记1|243 次阅读|0 个评论
本页有 2 篇日志因作者的隐私设置或未通过审核而隐藏