Last active
April 27, 2024 06:22
-
-
Save cirrusUK/2d7b7658d3ed5e8e95068fe5056a07df to your computer and use it in GitHub Desktop.
scripts for parsing and posting RSS feeds to twitter & pnut.io | twitter uses python-twitter pkg
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| msg=$( ~/.bin/osnews.sh ) | |
| /usr/local/bin/texnut -status="💻 $msg " | |
| sleep 2 | |
| twitter set "💻 $msg" | |
| sleep 2 | |
| exit |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/sh | |
| cd ~/ && wget http://www.osnews.com/files/recent.xml | |
| xmlstarlet sel -T -t -m rss/channel/item -v "concat(title,' - ',link)" -n ~/recent.xml | shuf -n 1 | |
| sleep 5 | |
| rm -rf ~/recent.xml | |
| exit |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment