GitXplorerGitXplorer
y

py-twilog

public
3 stars
0 forks
0 issues

Commits

List of commits on branch master.
Unverified
1d8b4b00fae7157fd10d57e22caeea4f12f5d4fd

fix README

yyono committed 12 years ago
Unverified
c8b18eca99f6aa944f1ef7b77e5b58dd42b00c17

refactoring

yyono committed 12 years ago
Unverified
ac0cb6772a396839ad8f1f10a83f683de6b73d13

fix error for crashed html tag in script tag

yyono committed 12 years ago
Unverified
46995499cb2677327c3509ace1c0a89f536f15d3

リファクタリング

yyono committed 14 years ago
Unverified
e9d5010408ee0d085d6a58fd6944df0a023f8f25

時刻がずれるバグ修正

yyono committed 14 years ago
Unverified
f967dacbd169882b8a8eba4c250493aca809ca32

時刻取得機能を追加、README に反映

yyono committed 14 years ago

README

The README file for this repository.

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