QuickAdd script for Import RSS Feed

Hello,

I wanted to be able to retrieve articles from my RSS feeds from Obsidian. I didn’t necessarily need to read them in Obsidian since I read them in a browser, so I can highlight them and import them if necessary with Obsidian Web Clipper.
Furthermore, I had tried a few plugins, but either they imported all the articles into separate notes directly (which cluttered up my notes too much since most of them I only read them but don’t keep them), or they were too old and no longer maintained.

I came across the python script on GitHub RSS2Obsidian by Clampro, which is practical, but is not very integrated into obsidian in my case since I have to launch it elsewhere, etc.

So I had the idea of ​​adapting it into a javascript script that I can run with quickadd. We can also launch it automatically at startup via quickadd.

This script therefore creates a note with the links to the latest articles (configurable number) from the chosen RSS feeds, and their publication date.

The publication date is put in the form of a link which allows us to either query with dataview the new articles of the day in our daily notes. Or to just be able to see them in the backlinks in our daily note.

It requires a API key on RSS2json (free if you use less than 25 rss feeds).

You must first create a note (basic List of RSS feeds.md but configurable) in which you can place links to RSS feeds, one per line. For example :

https://cerveau-numerique.fr/feed/
https://siecledigital.fr/technologie/feed/
https://obsidian.md/feed.xml
https://obsidian.md/changelog.xml
https://forum.obsidian.md/c/share-showcase/9.rss

Then, we create the empty note, where the basic RSS articles will be added under the name RSS feed.md, also configurable.

Then, we import this js file into the quickadd script folder.

Finally, we create a macro in quickadd, under the name we want, and we add the previously added script in user scripts.

We can then click on the little wheel: (I personally left a delay before the script launched to give time for obsidian and the plugins to finish launching, but I don’t think this is obligatory)

Which allows us to configure the script according to preferences. It is especially necessary to put your RSS2json Api Key there. The Date format is the format in which the publication date of the articles will be put, in the form of a link, so I advise you to put the date format of your daily notes there.
image

If you want to start the script at startup, you must go to manager macros in the quickadd options and activate the run on plugin load.

When the script is launched, we obtain the articles in the chosen note in this format:

1 Like