Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Twitter search #59

Closed
jhill515 opened this issue May 20, 2013 · 1 comment
Closed

Twitter search #59

jhill515 opened this issue May 20, 2013 · 1 comment

Comments

@jhill515
Copy link

I'm sure this isn't the right forum for this, but I haven't seen any others...

I'm trying to get my feet wet using the API, so I tried to do a basic search and I used the following code:

 tSearch = twitter.Twitter(domain='search.twitter.com')
 tSearch.search(q='Obama', rpp=1)

I've received the following error response:

 Traceback (most recent call last):
 File "interactive", line 1, in <module>
 File "/usr/local/lib/python2.7/dist-packages/twitter-1.9.4-py2.7.egg/twitter/api.py", line 204, in __call__
   return self._handle_response(req, uri, arg_data, _timeout)
 File "/usr/local/lib/python2.7/dist-packages/twitter-1.9.4-py2.7.egg/twitter/api.py", line 235, in _handle_response
 raise TwitterHTTPError(e, uri, self.format, arg_data)
 twitter.api.TwitterHTTPError: Twitter sent status 404 for URL: 1.1/search.json using parameters: (q=Obama&rpp=1)
 details: {"errors":[{"message":"Sorry, that page does not exist","code":34}]}

Not sure what to do since my browser was able to turn an answer. Thank you for your time and consideration.

@sebastianw
Copy link
Collaborator

Yes, you're searching for: https://github.com/sixohsix/twitter
Wrong package :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants