怎么python检索Twitter搜索功能?


看社交网站的数据挖掘与分析,示例1-3 检索twitter搜索功能


 import twitter as t
twitter_search = t.Twitter(domain = "search.twitter.com")
trends = twitter_search.trends()

报错 请问这是什么问题?


 File "<stdin>", line 1, in <module>
  File "build\bdist.win-amd64\egg\twitter\api.py", line 245, in __call__
  File "build\bdist.win-amd64\egg\twitter\api.py", line 252, in _handle_response
  File "E:\phthon64\lib\urllib2.py", line 127, in urlopen
    return _opener.open(url, data, timeout)
  File "E:\phthon64\lib\urllib2.py", line 404, in open
    response = self._open(req, data)
  File "E:\phthon64\lib\urllib2.py", line 422, in _open
    '_open', req)
  File "E:\phthon64\lib\urllib2.py", line 382, in _call_chain
    result = func(*args)
  File "E:\phthon64\lib\urllib2.py", line 1222, in https_open
    return self.do_open(httplib.HTTPSConnection, req)
  File "E:\phthon64\lib\urllib2.py", line 1184, in do_open
    raise URLError(err)
urllib2.URLError: <urlopen error [Errno 10053] >

python twitter 数据挖掘

ziseed 10 years, 4 months ago

开VPN试试

幻魔Dドール answered 10 years, 4 months ago

Your Answer