Skip to content

yono/py-twilog

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

twilog

py-twilog downloads tweets from http://twilog.org

Install

$ git clone git://github.com/yono/py-twilog.git
$ cd py-twilog
$ sudo python setup.py install

Usage

from twilog import twilog
log = twilog.Twilog()

# download today's tweets
tweets = log.get_tweets(user='yono')
for tweet in tweets:
    print tweet

# download tweets at 2010/04/01
from datetime import date
aday_tweets = log.get_tweets(user='yono', start=date(2010,4,1))
for tweet in aday_tweets:
    print tweet

# download tweets from 2010/04/01 to 2010/04/05
days_tweets = log.get_tweets(user='yono', start=date(2010,4,1),
                             end=date(2010,4,5))
for tweet in days_tweets:
    print tweet

# download tweets and datetime
tweets = log.get_tweets_verbose(user='yono')
for tweet in tweets:
    print tweet.text, tweet.date

About

Twilog から発言を取得する

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages