Closed GoogleCodeExporter closed 9 years ago
Basic-Auth is no longer supported by Twitter, and python-twitter doesn't
support OAuth.
Try this instead:
http://mike.verdone.ca/twitter/
Original comment by chri...@gmail.com
on 2 Dec 2010 at 11:53
I don't mind if folks mention other twitter libs (heck, encourage it) but
please do make sure you are accurate...
python-twitter DOES support OAuth, but right now it's in the source version as
we haven't pushed a new distribution yet.
Original comment by bear42
on 8 Dec 2010 at 12:58
Original comment by bear42
on 8 Dec 2010 at 1:00
OK, I give up. Why doesn't this work (replacing keys with correct values) I get
the error message:
TypeError: __init__() got an unexpected keyword argument 'access_token_key'
This is a trimmed down version of your tweet.py example. ???
Any idea how I can see what version of python-twitter "apt-get install
python-twitter" got me?
============================
import twitter
access_key="abc"
access_secret="xyz"
consumer_key="123"
consumer_secret="456"
message="Good Morning!"
encoding = None
api = twitter.Api(consumer_key=consumer_key, consumer_secret=consumer_secret,
access_token_key=access_key, access_token_secret=access_secret,
input_encoding=encoding)
try:
status = api.PostUpdate(message)
except UnicodeDecodeError:
print "Your message could not be encoded. Perhaps it contains non-ASCII characters? "
print "Try explicitly specifying the encoding with the --encoding flag"
sys.exit(2)
print "%s just posted: %s" % (status.user.name, status.text)
Original comment by rick.dea...@gmail.com
on 20 Sep 2011 at 10:02
Original issue reported on code.google.com by
henry...@gmail.com
on 24 Nov 2010 at 8:27