Skip to content

Instantly share code, notes, and snippets.

@alifeee
Last active October 22, 2024 10:45
Show Gist options
  • Save alifeee/8342d9677c436e2353233f68f34cfe19 to your computer and use it in GitHub Desktop.
Save alifeee/8342d9677c436e2353233f68f34cfe19 to your computer and use it in GitHub Desktop.
Common RSS URL extensions

Common RSS URL extensions

I like blogs. I like RSS feeds. Often, blogs don't have an RSS feed link. Often, these blogs do have an RSS feed, thanks to whatever site generator they use.

Thus, I like to try and find the hidden feed. These are the URLs I usually put on the URL to try and find the feed.

For example, blog.alifeee.co.uk -> blog.alifeee.co.uk/feed.xml

/feed
/feed.xml
/rss
/rss.xml
/atom
/atom.xml
/index.xml
./feed
./feed.xml
./rss
./rss.xml
./atom
./atom.xml
./index.xml

automating it

run this in a bash shell to make an HTTP request to each of the above endpoints. The results will show HTTP status codes, hopefully the server has implemented 404s, so you can tell which files exist and which do not.

URL="https://blog.alifeee.co.uk/"; feeds=( feed feed.xml rss rss.xml atom atom.xml index.xml ); for feed in "${feeds[@]}"; do http=$(curl -s -D - "${URL}${feed}" -o /dev/null | head -n1 | sed 's/\r//g'); echo "${http} ${feed}"; done

Specific site builders

If you know what site generator is used, they usually have a default RSS feed URL. Here are some

  • Hugo - /index.xml
  • Squarespace - ?format=rss / rss.xml
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment