2024-03-29 09:43:58 发布
网友
我想从urllibpython库中获得一些等价于urlopen的东西来从web获取数据,
urllib
urlopen
urlopen在google或youtube这样的网站上似乎不起作用,可能是因为标题不正确,
那么我还可以使用其他基于python的内容获取程序吗?你知道吗
以下是urllib2获取网页的示例:
urllib2
import urllib2 response = urllib2.urlopen('http://google.com/') html = response.read()
示例取自urllib2 documentation。你知道吗
以下是
urllib2
获取网页的示例:示例取自urllib2 documentation。你知道吗
相关问题 更多 >
编程相关推荐