Fetching RSS feeds into Tinderbox one item per feed item

Thank you Mark.

I decided to work with the runCommand and wrote a Python script that reads my feed. See below. By the way somehow Tinderbox does not see my python packages and that’s why I have to load it extra.

Here is my idea:
First I load the json content through a stamp in a note. Now I thought I would create an agent that reads out the json result and creates new notes for each item. Does that makes sense or is it a redundant task? I just cannot get my head around the agent query to start creating notes. I browsed unsuccesfully the forum for a long time to find some hints how I can create notes from an input (e.g. json).

And I would add the ID to avoid duplicated items.

$Text = runCommand(‘python ~/get_feeds_pinboard.py’)

import sys
sys.path.append(‘/usr/local/lib/python2.7/site-packages’)
import feedparser
feed_url = “https://feeds.pinboard.in/rss/
def main(feed_url):
d = feedparser.parse(feed_url)
for item in d.entries:
print item
if name == “main”:
main(feed_url)