Pinterest Node

How about a Pinterest Node which can fetch the image from Board.

They are giving RSS Feed URL for each board.

https://in.pinterest.com/USERNAME/BoardName.rss

Hi @mcnaveen, meanwhile perhaps the following workflow might be useful for you? You only have to set the username and the boardname in the Set node to customize this for your use-case. I have added the Telegram node for output in the end since I noticed in the forum that you have been using Telegram :slight_smile:

{
  "name": "Example workflow Pinterest",
  "nodes": [
    {
      "parameters": {},
      "name": "Start",
      "type": "n8n-nodes-base.start",
      "typeVersion": 1,
      "position": [
        260,
        300
      ]
    },
    {
      "parameters": {
        "values": {
          "string": [
            {
              "name": "username",
              "value": "delaney5745"
            },
            {
              "name": "boardname",
              "value": "kitchen-make-over-grey-white"
            }
          ]
        },
        "options": {}
      },
      "name": "Set",
      "type": "n8n-nodes-base.set",
      "typeVersion": 1,
      "position": [
        450,
        300
      ]
    },
    {
      "parameters": {
        "url": "=https://www.pinterest.de/{{$node[\"Set\"].json[\"username\"]}}/{{$node[\"Set\"].json[\"boardname\"]}}.rss"
      },
      "name": "RSS Feed Read",
      "type": "n8n-nodes-base.rssFeedRead",
      "typeVersion": 1,
      "position": [
        650,
        300
      ]
    },
    {
      "parameters": {
        "functionCode": "const newItems = [];\n\nfor(i=0;i<items.length;i++) {\n newItems.push({json: {url: items[i].json.content.split('\"')[3]}});\n}\n\nreturn newItems;"
      },
      "name": "Function",
      "type": "n8n-nodes-base.function",
      "typeVersion": 1,
      "position": [
        850,
        300
      ]
    },
    {
      "parameters": {
        "operation": "sendPhoto",
        "file": "={{$node[\"Function\"].json[\"url\"]}}",
        "additionalFields": {}
      },
      "name": "Telegram",
      "type": "n8n-nodes-base.telegram",
      "typeVersion": 1,
      "position": [
        1050,
        300
      ],
      "credentials": {
        "telegramApi": "Telegram"
      }
    }
  ],
  "connections": {
    "Start": {
      "main": [
        [
          {
            "node": "Set",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Set": {
      "main": [
        [
          {
            "node": "RSS Feed Read",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "RSS Feed Read": {
      "main": [
        [
          {
            "node": "Function",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Function": {
      "main": [
        [
          {
            "node": "Telegram",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  },
  "active": false,
  "settings": {},
  "id": "199"
}

Please note that this workflow will send all the images everytime it is run (along with the ones it has already sent). You can use static workflow data to check if certain images have already been sent so that it only sends new images, when available. You can find more information on how to do that here and an example of how it works here. The workflow would then probably be triggered by a Cron or Interval node.

Let me know if that helps or if you have any other questions. Have fun! :smiley:

2 Likes