예제 #1
0
파일: oauth.py 프로젝트: trosa/Chapolinator
    def get(self):
        client = OAuthClient('twitter', self)

        #if not client.get_cookie():
        #    self.response.out.write("<a href='/oauth/twitter/login'>login</a>")
        #    return;

        chapo = Chapolinator()
        proverb = chapo.talk()
        client.post('/statuses/update', status=proverb.decode('latin-1').encode('utf-8'))
예제 #2
0
    def get(self):
        client = OAuthClient('twitter', self)

        #if not client.get_cookie():
        #    self.response.out.write("<a href='/oauth/twitter/login'>login</a>")
        #    return;

        chapo = Chapolinator()
        proverb = chapo.talk()
        client.post('/statuses/update',
                    status=proverb.decode('latin-1').encode('utf-8'))
예제 #3
0
파일: test.py 프로젝트: trosa/Chapolinator
from chapolinator import Chapolinator

chapo = Chapolinator()
for x in range(100):
    talk = chapo.talk()
    print talk.decode('latin-1').encode('utf-8'), len(
        talk.split(' ')), len(talk)
예제 #4
0
파일: test.py 프로젝트: trosa/Chapolinator
from chapolinator import Chapolinator

chapo = Chapolinator()
for x in range(100):
	talk = chapo.talk()
	print talk.decode('latin-1').encode('utf-8'), len(talk.split(' ')), len(talk)