Manually map RSS Feed keys?

This request is mainly related to Feedburner and their "feedburner:origLink* property.

I’ve tested different tricks to try and extract it but I could only grab 1 item from the list or the entire list is returned as 1 item

I’m considering writing a simple php script to do this conversion for me but I was wondering if it’d be something worth including in the RSS Feed Read node

Another alternative would be to create a node that can set/increment/decrement integers and be referenced in a Function node using Javascript

Side note:
I’m a long time user of Zennoposter which has a similar concept for creating and automating workflows and browser emulation. It’s worth checking out for ideas on what nodes to add

@dave0 Can you please post the link of the RSS feed.

@jan https://feeds.feedburner.com/TheHackersNews?format=xml

Like that you can put split them in different items:
(You can simply copy & paste it into n8n)

{
  "nodes": [
    {
      "parameters": {
        "url": "https://feeds.feedburner.com/TheHackersNews?format=xml",
        "responseFormat": "string",
        "options": {}
      },
      "name": "HTTP Request",
      "type": "n8n-nodes-base.httpRequest",
      "typeVersion": 1,
      "position": [
        650,
        350
      ]
    },
    {
      "parameters": {
        "options": {}
      },
      "name": "XML",
      "type": "n8n-nodes-base.xml",
      "typeVersion": 1,
      "position": [
        800,
        350
      ]
    },
    {
      "parameters": {
        "functionCode": "const urls = items[0].json.rss.channel.item.map(item => {\n  return item['feedburner:origLink'];\n})\n\nreturn urls.map(url => {\n  return {\n    json: {\n      url\n    }\n  };\n});\n"
      },
      "name": "Function",
      "type": "n8n-nodes-base.function",
      "typeVersion": 1,
      "position": [
        950,
        350
      ]
    }
  ],
  "connections": {
    "HTTP Request": {
      "main": [
        [
          {
            "node": "XML",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "XML": {
      "main": [
        [
          {
            "node": "Function",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}

Ah I may have to freshen up on ES6. Your tip is much appreciated :smiley:

In case anyone needs it, here is a modified snippet to include titles for the Function node

const articles = items[0].json.rss.channel.item.map(item => {
  return [item['title'],item['feedburner:origLink']];
})

return articles.map(item => {
  return {
    json: {
      'title':item[0],
      'link':item[1]
    }
  };
});

Cheers :tada: