Loading...
Loading...
Read and parse RSS/Atom feeds. Use when: user wants to subscribe to feeds, get latest articles, or monitor news sources.
npx skill4agent add winsorllc/upgraded-carnival rss-reader# Get feed info
curl -s "https://example.com/feed.xml" | head -20
# Check if RSS or Atom
curl -s "https://example.com/feed.xml" | head -1# Install if needed
# apt install xmlstarlet
# List all items
curl -s "feed.xml" | xmlstarlet sel -t -m "//item" -v "title" -n
# Get latest 5 titles
curl -s "feed.xml" | xmlstarlet sel -t -m "//item[position() <= 5]" -v "title" -n# Parse with xmllint
curl -s "feed.xml" | xmllint --format - 2>/dev/null | head -50# Simple feed parser
python3 -c "
import xml.etree.ElementTree as ET
import urllib.request
url = 'https://example.com/feed.xml'
data = urllib.request.urlopen(url).read()
root = ET# Find channel.fromstring(data)
for item in root.findall('.//item'):
title = item.find('title')
if title is not None:
print(title.text)
"# Convert RSS to YAML
curl -s "feed.xml" | yq -x '.rss.channel.item[]'# Get all item titles
curl -s "feed.xml" | grep -o '<title>[^<]*</title>' | sed 's/<title>//;s/<\/title>//'
# With descriptions
curl -s "feed.xml" | grep -o '<title>[^<]*</title>\|<description>[^<]*</description>'# Latest 10 items with dates
curl -s "feed.xml" | grep -o '<item>.*</item>' | head -10 | \
while read item; do
echo "$item" | grep -o '<title>[^<]*</title>'
echo "$item" | grep -o '<pubDate>[^<]*</pubDate>'
echo "---"
done# Get all article links
curl -s "feed.xml" | grep -o '<link>[^<]*</link>' | sed 's/<link>//;s/<\/link>//'curl -s "https://news.ycombinator.com/rss" | \
grep -o '<title>[^<]*</title>' | sed 's/<title>//;s/<\/title>//' | head -20curl -s "https://techcrunch.com/feed/" | \
grep -o '<title>[^<]*</title>' | head -15# GitHub doesn't have RSS, but you can use GitHub's API
curl -s "https://api.github.com/repos?sort=updated&per_page=10" | \
jq '.[].full_name'/feed//feed/rss//{username}/feedhttps://www.youtube.com/feeds/videos.xml?channel_id={id}<entry><item>