Talk:Twitter

From OpenHatch wiki
Revision as of 00:39, 7 August 2013 by imported>Brittag (responding to Divya's question)

Hi,

I have installed all the dependencies required for the Twitter project. To test the installation when I run :

python twitter_api.py --search=python

I am getting the below error, stack trace :


Traceback (most recent call last):

 File "twitter_api.py", line 44, in <module>
   main(sys.argv[1:])
 File "twitter_api.py", line 35, in main
   twitter_functions.search(opts.search_term)
 File "/home/kutti/OpenHatch projects/twitter/Twitter/twitter_functions.py", line 16, in search
   tweets = api.GetSearch(searchTerm)
 File "/usr/local/lib/python2.6/dist-packages/twitter.py", line 2524, in GetSearch
   data = self._ParseAndCheckTwitter(json)
 File "/usr/local/lib/python2.6/dist-packages/twitter.py", line 4396, in _ParseAndCheckTwitter
   self._CheckForTwitterError(data)
 File "/usr/local/lib/python2.6/dist-packages/twitter.py", line 4421, in _CheckForTwitterError
   raise TwitterError(data['errors'])


I got to know this has something to do with the movement of Twitter API 1 to 1.1. Am I right? Also, still unable to figure out how to solve the same. Could someone help?

Thanks, Divya


Hi Divya! You're right that this needs to be fixed to work with the new Twitter API - see this bug on the OpenHatch bugtracker. Sorry about that! Unfortunately I don't know enough to fix it myself, but you can subscribe to that bug for updates on when it gets fixed. Brittag (talk) 00:39, 7 August 2013 (UTC)