LoginSignup
2
4

More than 5 years have passed since last update.

Tweepy で 特定ユーザーのツイートを取得

Last updated at Posted at 2018-11-28
get_tweet_tweepy.py
#! /usr/bin/python
#
#   get_tweet_tweepy.py
#
#                       Nov/29/2018
# ------------------------------------------------------------------
import  sys
import  tweepy

from key_tweepy import key_tweepy_proc

sys.stderr.write("*** 開始 ***\n")

api = key_tweepy_proc()

results = api.user_timeline(screen_name="ekzemplaro", count=10)
#
for result in results:
    print(result.id)
    print(result.created_at)
    print(result.text)
    print()
#
sys.stderr.write("*** 終了 ***\n")
# ------------------------------------------------------------------

key_tweepy.py はこちらと同じです。
Tweepy で Twitter の単語を検索する

Teepy の API の仕様です。
API Reference

2
4
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
2
4