Skip to content

Instantly share code, notes, and snippets.

@clarkzjw
Last active July 5, 2019 03:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save clarkzjw/4e7627a3b44bde76b62c to your computer and use it in GitHub Desktop.
Save clarkzjw/4e7627a3b44bde76b62c to your computer and use it in GitHub Desktop.
from twython import Twython, TwythonError
import time
import sys
APP_KEY = ''
APP_SECRET = ''
OAUTH_TOKEN = ''
OAUTH_TOKEN_SECRET = ''
twitter = Twython(APP_KEY, APP_SECRET, OAUTH_TOKEN, OAUTH_TOKEN_SECRET)
if __name__ == "__main__":
status=sys.argv[1]
try:
twitter.update_status(status=status)
except TwythonError as e:
print(e)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment