social-photos/boost_mastodon.py

11 lines
354 B
Python
Raw Normal View History

2023-11-05 21:13:57 +00:00
from load_config import config
from mastodon import Mastodon
m = Mastodon(access_token=config['boost_mastodon']['token'], api_base_url=config['boost_mastodon']['server'])
def boost(url):
url = "pixelfed.scot/i/web/post/626860160148125215"
search_results = m.search(url, resolve=True)
print(search_results)
print("Error with searching")