前回までのお話 twitter APIで遊んでみる #1(環境作り) はじめに 前回は、とりあえずpythonでtwitter APIが叩ける環境まで作りました。今回は実際にAPIを叩いて、特定ユーザーのタイムラインを取得してみます。 なんとなく今ハンバーガーが食べたいので、モスバーガーの公式twitter(@mos_burger)のタイムラインを取得してみました。 APIのリファレンス 今回使用するuser_timelineAPIのリファレンスです。 https://developer.twitter.com/en/docs/tweets/timelines/api-reference/get-statuses-user_timeline.html パラメータはいっぱいありますが、今回はcountとscreen_nameを指定しました。 countは検索結果のレコード数です。最大が200