from mastodon import Mastodon ''' https://mastodonpy.readthedocs.io/en/stable/index.html Mastodon.create_app( 'pytooterapp', api_base_url = 'https://mastodon.social', to_file = 'pytooter_clientcred.secret' ) ''' # mastodon = Mastodon(client_id = 'pytooter_clientcred.secret',) # mastodon.log_in( # 'my_login_email@example.com', # 'incrediblygoodpassword', # to_file = 'pytooter_usercred.secret' # ) mastodon = Mastodon(access_token = 'pytooter_usercred.secret') mastodon.toot('Tooting from Python using #mastodonpy !')