Twython search with proxy

26 views
Skip to first unread message

dandy

unread,
Nov 7, 2012, 3:24:51 AM11/7/12
to twytho...@googlegroups.com

Hi,

I am trying to develop a small program. I can use getUserTimeline & getWeeklyTrends from using proxy but when I try to use search I get below error.

Traceback (most recent call last):
File "search_results.py", line 9, in 
print twitter.search(q='python')
File "C:\Python26\lib\site-packages\twython\twython.py", line 368, in search
return self.get('https://search.twitter.com/search.json', params=kwargs)
File "C:\Python26\lib\site-packages\twython\twython.py", line 239, in get
return self.request(endpoint, params=params, version=version)
File "C:\Python26\lib\site-packages\twython\twython.py", line 234, in request
content = self._request(url, method=method, params=params, files=files, api_
call=url)
File "C:\Python26\lib\site-packages\twython\twython.py", line 171, in _request

response = func(url, params=params)

File "C:\Python26\Lib\site-packages\requests\sessions.py", line 254, in get
return self.request('get', url, **kwargs)
File "C:\Python26\Lib\site-packages\requests\sessions.py", line 241, in reques
t
r.send(prefetch=prefetch)
File "C:\Python26\Lib\site-packages\requests\models.py", line 634, in send
raise ConnectionError(sockerr)
requests.exceptions.ConnectionError: [Errno 10051] A socket operation was attemp
ted to an unreachable network

Am I missing something here?

Thanks in advance,
Dhananjay

Reply all
Reply to author
Forward
0 new messages