mastodon / mastodon

Your self-hosted, globally interconnected microblogging community
https://joinmastodon.org
GNU Affero General Public License v3.0
47.19k stars 6.99k forks source link

Local timeline RSS feed #17269

Open mossymossmoss opened 2 years ago

mossymossmoss commented 2 years ago

Pitch

Add the ability to get an RSS feed of all public posts on a specific instance

Motivation

Useful to have new posts linked to on a Discord/Matrix channel with the use of a bot

mhkhung commented 1 year ago

For now, use the json..

.../api/v1/timelines/public?local=true&only_media=false
markcellus commented 1 year ago

Yeah, using the Mastodon API directly to display timeline content is probably the best way to go if you want to display in a chat app. RSS feeds were meant to be consumed by RSS Readers. But adding more RSS support in https://github.com/mastodon/mastodon/issues/21500 would be great!

sanderhollaar commented 1 year ago

Example:

curl -s https://social.overheid.nl/api/v1/timelines/public?local=true | \
jq "reverse | .[] | select(.created_at|contains(\"$(date +%Y-%m-%dT)\")) | [.created_at,.content]" | \
elinks -dump -force-html -no-numbering -no-references