Talk:Twitter

From OpenHatch wiki
Revision as of 14:20, 6 August 2013 by imported>Divya KV (Error in "python twitter_api.py --search=python")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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