social-photos/publish_pixelfed.py

8 lines
289 B
Python
Raw Normal View History

import load_config
from mastodon import Mastodon
Mastodon.create_app("social_photos", api_base_url=load_config.config['pixelfed']['server'], user_agent="social-photos")
Mastodon.log_in(code=load_config['pixelfed']['token'])
mastodon = Mastodon(access_token = 'pytooter_usercred.secret')