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

Add support for OPML feeds #138

Open
theycallhermax opened this issue Jun 14, 2024 · 1 comment
Open

Add support for OPML feeds #138

theycallhermax opened this issue Jun 14, 2024 · 1 comment

Comments

@theycallhermax
Copy link

An OPML feed is a way for how to integrate many feeds into one, sort of like merging many feeds into one.

Possible implementation

A OPML feed can be imported the same way as a normal feed...

const feed = await extract("https://example.com/feeds.opml");

...and can almost be read the same too...

interface OPMLData {
    title: String;
    feeds: OPMLFeed[];
    entries: OPMLEntry[];
}

interface OPMLFeed {
    title: String;
    link: String;
}

interface OPMLEntry {
    id: String;
    feed: String;
    title: String;
    link: String;
    description: String;
    published: ISO Datetime String;
}

A mock OPML feed can be made by passing an array of feed URLs to the extract function...

const feed = await extract([
    "https://example.com/feed.rss",
    "https://foobar.com/feed.atom"
]);

Things that would be done post-implementation

  • The extractFromOpml API would need to be introduced.
  • The existing APIs (extractFromJson and extractFromXml) would need to be updated to support the mock OPML generation support.
@ndaidong
Copy link
Collaborator

@theycallhermax thank you for your recommendation. This is really useful feature. I will have plan to try implementing.

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

2 participants