Last active
August 29, 2015 14:03
-
-
Save tpdn/67d83c5b89924943eedc to your computer and use it in GitHub Desktop.
餃子の王将
This file contains 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
import rauth | |
CONSUMER_KEY = '' | |
CONSUMER_SECRET = '' | |
ACCESS_TOKEN = '' | |
ACCESS_TOKEN_SECRET = '' | |
URL = 'https://api.twitter.com/1.1/statuses/update.json' | |
session = rauth.OAuth1Session( | |
CONSUMER_KEY, CONSUMER_SECRET, ACCESS_TOKEN, ACCESS_TOKEN_SECRET | |
) | |
def post(x): | |
if not session.post(URL, data={'status': x}): | |
post(x + ' ') | |
gyoza = '朝鮮民主主義人民共和国' | |
for x in gyoza[::-1]: | |
post(x) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment