Skip to content

Instantly share code, notes, and snippets.

@gin0606
Created May 7, 2013 15:03
Show Gist options
  • Save gin0606/5533311 to your computer and use it in GitHub Desktop.
Save gin0606/5533311 to your computer and use it in GitHub Desktop.
#!/usr/bin/python
# -*- coding: utf-8; -*-
import sys
import tweepy
ckey = ''
csecret = ''
atoken = ''
atoken_secret = ''
auth = tweepy.OAuthHandler( ckey, csecret )
auth.set_access_token( atoken, atoken_secret )
api = tweepy.API( auth_handler=auth )
if __name__ == '__main__':
args = sys.argv[1:]
status = ''
for i in args:
status += i + " "
import unicodedata
normalize_text = unicodedata.normalize('NFC', status.decode("utf-8"))
api.update_status(normalize_text.encode("utf-8"))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment