joethei / obsidian-rss

Read RSS Feeds from inside Obsidian
GNU General Public License v3.0
394 stars 23 forks source link

get Full-Text content from articles #135

Open joserdf opened 7 months ago

joserdf commented 7 months ago

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 commented 7 months ago

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"]);
}