Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Automatically Detect Feeds in HTML. #25

Open
kevincox opened this issue Sep 21, 2021 · 0 comments
Open

Automatically Detect Feeds in HTML. #25

kevincox opened this issue Sep 21, 2021 · 0 comments

Comments

@kevincox
Copy link

For example

!rss subscribe https://kevincox.ca
!rss subscribe https://www.youtube.com/c/TechnologyConnections

Should work. Instead they give an error because they try to parse the HTML as XML.

Feed discovery is a well understood process but the basics is that if you get an HTML response back you should check for links such as <link rel="alternate" type="application/rss+xml" href="{feed-url}"> in the HTML and HTTP headers. One complication is that if there are multiple feeds available the user should probably be asked which one to select.

A simple UX for selecting feed is just displaying the title and printing !rss subscribe {url} lines for the user to copy-paste. However better UX would be something like listing them with numbers and allowing the user to click a reaction to pick which feed they want to subscribe to.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant