GitXplorerGitXplorer
j

mastodon-to-moi

public
1 stars
0 forks
0 issues

Commits

List of commits on branch main.
Verified
39854144a0f803ab837a62433ad9a77e5a0afd13

Figured out async! image downloads are now asynchronous!

jjasonbraganza committed 2 years ago
Verified
cd5075b770c7a40610e6c25e8104a99c4d373e0c

Figured out async! image downloads are now asynchronous!

jjasonbraganza committed 2 years ago
Verified
1b0163acd12c13848ad335cdebe8ae72ce6ec1d0

Figured out, that I don’t need typing or packaging on this project. too heavy duty. added some more stuff to ignore

jjasonbraganza committed 2 years ago
Verified
cc78ed7e39dafe8daa10aa68d1a5fd1354a59581

Restored after booboos

jjasonbraganza committed 2 years ago
Verified
fc0263932b5196fa61b3463f894e6e7d5bae1580

No mypy for now

jjasonbraganza committed 2 years ago
Verified
751b1242a6bebce682d8e85d32decf7a15204149

Renamed the script

jjasonbraganza committed 2 years ago

README

The README file for this repository.

Python script to get the content of my public toots on my mastodon instance, via rss and then cross post them to my microblog for long term archival

The script will gets RSS entries from a mastodon account feed and create text files in the current directory, which you can then give to Hugo to process

Prerequisites, if you want to use this script

  1. You have a mastodon account and its url
  2. This script is tailored to a Hugo microblog running J N Josh’s internet-weblog theme
  3. This works if, you work on the blog, locally. You need to rsync or git-push once done. If your whole workflow is cloud based, this probably won’t do it for you

Caveats

The script also does no verification of any sort. for e.g., to see, if the feed is malformed.
Use at your own risk.
Media other than photos, don’t work for now.

Install

  1. In a virtualenv, install requirements with pip.
    I use Python 3.11.
python -m pip install -r requirements.txt
  1. Copy settings.py.example to settings.py and update mastodon_feed_url, post_path and image_path.

  2. Run the script to pull toots and push to the microblog.

python mastodon-to-moi.py