11. ツイート情報を取得(2/2)
>>> tweet.id # ツイートid 145731418545336320
>>> print tweet.text # ツイートの内容(テキスト)
@petitviolet 了解^^
>>> print tweet.location # ツイートの位置情報 None
>>> print tweet.relative_created_at # ツイートされた時間
about an hour ago
>>> tweet.user # ツイートしたユーザの情報
<twitter.User object at 0x101052b50>
12. 全体タイムラインを取得
GetPublicTimeline()
>>> timeline = api.GetPublicTimeline()
>>> for tweet in timeline:
... print tweet.text
...
*yawns*
Just gave up in Monopoly cause he is so brutal. Gave all my money
・・・
LMFAOOOOO !
I have tons of followers and got them by using this easy program!
⽇日本語少ない
13. ユーザのフォロイーを取得
GetFriends()
>>> friends = api.GetFriends()
>>> for friend in friends:
... print friend.screen_name
...
teracy
happy_nina
・・・
toumeinomochi
sakikuri1023
最⼤大100件までを取得
python-twitterで100⼈人以上のフォロイーを取得 - Hello World !