Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Using Python with the Twitter API to post tweets? [closed]

Anyone have any reccomendations as to what python library to use to post tweets to twitter?

The ones I've found are

  • twython
  • PythonTwitter
  • TwitterAPI
  • Python Twitter Tools
  • Tweepy
  • TweetPony
  • twitter-gobject

Anyone else know of any good/better ones or can anyone give me a simple example to post to twitter?

Thanks in advance - Hyflex

like image 948
Ryflex Avatar asked Sep 30 '13 01:09

Ryflex


1 Answers

Twython is pretty nice and is constantly updated. After the setup steps, using it is as easy as:

from twython import Twython
twitter = Twython(APP_KEY, APP_SECRET,OAUTH_TOKEN, OAUTH_TOKEN_SECRET)
twitter.update_status(status='See how easy using Twython is!')
like image 162
John Lyon Avatar answered Sep 20 '22 01:09

John Lyon