MastodonのAPIを使えるようにしておく
ref.
準備
Mastodonにアクセスして、「開発」からアプリを設定し、アクセストークンエトセトラを取得しておく。
自分の投稿の取得
code:sample.py
from mastodon import Mastodon
api = Mastodon(
client_id = '',
client_secret = '',
access_token = ''
)
api.toot('APIからの投稿テスト')
account = api.account_verify_credentials()
toots = api.account_statuses(account)
for line in toots: