美文网首页
spider最小程序

spider最小程序

作者: 憧憬001 | 来源:发表于2019-02-18 17:13 被阅读0次

使用python自带的库(urllib.requests)

import urllib.request
response = urllib.request.urlopen('http://www.baidu.com',timeout=1)
html = response.read().decode('utf-8')
print(html)

相关文章

网友评论

      本文标题:spider最小程序

      本文链接:https://www.haomeiwen.com/subject/xtczeqtx.html