SHARE
TWEET

Untitled

a guest May 22nd, 2017 56 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. J AI NOTE CA :
  2.  
  3.  
  4.  
  5. # -*- coding: utf-8 -*-
  6.  
  7. import twitter
  8.  
  9. api = twitter.Api(username="gabs48", password="")
  10. statues = api.GetFriendsTimeline()
  11. for i in statues:
  12.     print "De: "+s.user_name
  13.     print "Message: ".s.text
  14.  
  15.  
  16.  
  17.  
  18. ET CELA DONNE :
  19.  
  20.  
  21.  
  22. [gabs48@Gudesk:~/src/Python]$ python twitterapi.py
  23. Traceback (most recent call last):
  24.   File "twitterapi.py", line 6, in <module>
  25.     statues = api.GetFriendsTimeline()
  26.   File "/usr/local/lib/python2.6/dist-packages/twitter.py", line 953, in GetFriendsTimeline
  27.     json = self._FetchUrl(url, parameters=parameters)
  28.   File "/usr/local/lib/python2.6/dist-packages/twitter.py", line 1431, in _FetchUrl
  29.     last_cached = self._cache.GetCachedTime(key)
  30.   File "/usr/local/lib/python2.6/dist-packages/twitter.py", line 1487, in GetCachedTime
  31.     path = self._GetPath(key)
  32.   File "/usr/local/lib/python2.6/dist-packages/twitter.py", line 1518, in _GetPath
  33.     hashed_key = md5.new(key).hexdigest()
  34. NameError: global name 'md5' is not defined
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top