spider最小程序

2019-02-18  本文已影响0人  憧憬001

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

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

猜你喜欢

热点阅读