from mastodon import Mastodon Mastodon.create_app("yourapp", # クライアント名 api_base_url = "https://mastodon.nil.nu", # アクセス先 to_file = "yourapp_clientcred.txt" # 出力先ファイル名 ) from mastodon import Mastodon mastodon = Mastodon( client_id="yourapp_clientcred.txt", # レジストレーションでできたやつ api_base_url = "https://mastodon.nil.nu") mastodon.log_in( "xxxx@xxxxxxxx.xxx", # ID(登録メールアドレス) "xxxx", # password to_file = "