Skip to content

Instantly share code, notes, and snippets.

@tpdn
Last active August 29, 2015 14:03
Show Gist options
  • Save tpdn/67d83c5b89924943eedc to your computer and use it in GitHub Desktop.
Save tpdn/67d83c5b89924943eedc to your computer and use it in GitHub Desktop.
餃子の王将
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