In today's video I will show you how to backup your Mostodon toots / posts to a sqlite database using sqlite-utils.
We will explore how to use GitHub Actions' schedule feature as a cronjob and have it commit changes to version control.
We'll also look at a simple Streamlit app to show some trends in the data.
And lastly, I show you some pytest code to prove that the upsert functionality works + a fixture to clean up the test DB.
Hope you pick up some new tricks from this video today. Enjoy!
Links:
Pybites is on Mastodon / Fosstodon (finally!): https://fosstodon.org/@pybites
Repo: https://github.com/bbelderbos/mastodo...
Run GitHub Actions as cronjob example: https://github.com/bbelderbos/mastodo...
Another example where I used this - a self updating GitHub README: https://pybit.es/articles/how-to-crea...
Cronjob syntax helper: https://crontab.guru/
Streamlit: https://streamlit.io/
Sqlite-utils: https://sqlite-utils.datasette.io/en/...
Pybites fixtures article: https://pybit.es/articles/pytest-fixt...
---
Learn more about Pybites / what we do: https://pybit.es
Get our weekly developer / mindset emails: https://pybit.es/friends/
Join our Slack community: https://pybit.es/community/
And last but not least, we appreciate any feedback to make our YouTube content better 💡
https://form.jotform.com/230941798741062 🙏
Auf dieser Seite können Sie das Online-Video Using Python feedparser + sqlite-utils + GitHub Actions to backup Mastodon feeds mit der Dauer stunde minuten sekunde in guter Qualität ansehen, das der Benutzer Pybites 02 Mai 2023 hochgeladen hat, den Link mit Freunden und Bekannten teilen, dieses Video wurde auf Youtube bereits 175 Mal angesehen und es wurde von 8 den Zuschauern gefallen. Viel Spaß beim Betrachtenden Zuschauern gefallen!