Bash script to get the last post from a RSS feed.
Go to file
Massimo Scagliola e54a6c092a fixed double echo in -r 2024-05-18 20:10:29 +02:00
LICENSE.md license 2024-04-28 15:30:41 +02:00
README.md README update + screenshot 2024-05-18 20:06:36 +02:00
get-last-rss-post.sh fixed double echo in -r 2024-05-18 20:10:29 +02:00
screenshot.webp README update + screenshot 2024-05-18 20:06:36 +02:00

README.md

Get Last RSS Post

Screenshot

Simple script to get the latest post link from a RSS feed (usually, the second occurence of the <title> tag).

It provides a quick way to copy/paste the title and URL for social media. It can be useful to run after deploying a static website.

If toot is installed, it can post the output as a status. A prompt will ask for it.

This is mainly for personal use. CTRL-C/CTRL-V FTW!

If I had to choose a license, it would be MIT.

Dependencies

  • wget
  • toot (optional for posting on Mastodon)

TO DO

  • Multiple arguments with getopts
    • Check publish date
    • Post with Toot
    • Toot Visibility
    • Random expressions
    • ...?
  • Custom template for post