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

get Full-Text content from articles #135

Open
joserdf opened this issue Apr 18, 2024 · 1 comment
Open

get Full-Text content from articles #135

joserdf opened this issue Apr 18, 2024 · 1 comment

Comments

@joserdf
Copy link

joserdf commented Apr 18, 2024

It would be interesting if when we click on an article we could have the full-text content available. The RSS feed is often truncated, so you need to make a request to get the full-text of each item.

@joserdf
Copy link
Author

joserdf commented Apr 18, 2024

my idea is something similar to this inside rssParser.ts:

if (item.link) {
  const fullContent = await requestContentFromUrl(item.link);
  fullText = new window.DOMParser().parseFromString(fullContent, "text/xml");
  item.content = getContent(fullText, ["abstract", "description", "summary", "media:description", "content", "content:encoded", "ns0:encoded"]);
}

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