Created
December 11, 2013 12:20
-
-
Save informationsea/7909440 to your computer and use it in GitHub Desktop.
Twitter Post
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
import argparse | |
import twitter | |
def _main(): | |
parser = argparse.ArgumentParser(description="Tweet something") | |
parser.add_argument('status') | |
options = parser.parse_args() | |
api = twitter.Api(consumer_key='XXX', | |
consumer_secret='XXX', | |
access_token_key='XXXX', | |
access_token_secret='XXXX') | |
api.PostUpdate(options.status) | |
if __name__ == '__main__': | |
_main() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment