Skip to content
Permalink
Browse files

Create RSSscript.sh

  • Loading branch information...
in4sometech committed Jan 3, 2019
1 parent 0e81977 commit 31bcb6d871936ebd0ccb17d15405037448b20bfe
Showing with 8 additions and 0 deletions.
  1. +8 −0 RSSscript.sh
@@ -0,0 +1,8 @@
#!/bin/sh
RSS_URL=https://aws.amazon.com/new/feed/
newsfeed=$(wget ${RSS_URL} -O - 2>/dev/null | xmlstarlet sel -t -m "/rss/channel/item" -n -v "title" -n -n)

echo "${newsfeed}" | while read line
do
curl -X POST "https://hooks.chime.aws/incomingwebhooks/tokencode" -H "Content-Type:application/json" --data "{\"Content\": \"$line\"}"
done

0 comments on commit 31bcb6d

Please sign in to comment.
You can’t perform that action at this time.