Skip to content Skip to main navigation Skip to footer

python如何打开一个网页

现在的很多网络爬虫都会用python 语言来写,那么如何通过python语言来打开一个网页呢。

import urllib
i = urllib.urlopen('http://www.baidu.com')
i = i.read()
print i
 
0 Comments

There are no comments yet

Leave a comment

Your email address will not be published.