27 lines
770 B
Markdown
27 lines
770 B
Markdown
# Get Last RSS Post
|
|
|
|
![Screenshot](screenshot.jpg)
|
|
|
|
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](https://toot.bezdomni.net/) 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](LICENSE.md).
|
|
|
|
## Dependencies
|
|
|
|
- `wget`
|
|
- `toot` (optional for posting on Mastodon)
|
|
|
|
## TO DO
|
|
|
|
- [x] Multiple arguments with getopts
|
|
- [x] Check publish date
|
|
- [x] Post with Toot
|
|
- [x] Toot Visibility
|
|
- ...?
|
|
- [ ] Custom template for post |