python爬取网页01
程序员文章站
2022-06-10 23:18:32
...
#! /usr/bin/python
import urllib
response = urllib.urlopen('http://focus.tianya.cn/')
html = response.read()
html = html.decode('utf-8')
print(html)
import urllib
response = urllib.urlopen('http://focus.tianya.cn/')
html = response.read()
html = html.decode('utf-8')
print(html)