This script makes Hugo page bundles out of Hashtag feeds on a Mastodon Hometown or Glitchsoc instance.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

18 lines
446 B

import os
# Which instance to login to
instance = 'https://social.lumbung.space'
# n.b. if it is the first time you use this script
# You need to register the app:
# https://mastodonpy.readthedocs.io/en/stable/#module-mastodon
# Login credentials for bot account
email = ''
password = ''
# Which hashtags to publish
hashtags = ['jalansesama']
# your Hugo content directory
output_dir = os.environ.get('OUTPUT_DIR', 'path/to/hugo/content')