Skip to content

Instantly share code, notes, and snippets.

@cirrusUK
Last active April 27, 2024 06:22
Show Gist options
  • Select an option

  • Save cirrusUK/2d7b7658d3ed5e8e95068fe5056a07df to your computer and use it in GitHub Desktop.

Select an option

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
#!/bin/bash
msg=$( ~/.bin/osnews.sh )
/usr/local/bin/texnut -status="💻 $msg "
sleep 2
twitter set "💻 $msg"
sleep 2
exit
#!/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