🎉 Pipedream raises $20M Series A 🎉
Read the blog post and TC Techcrunch article.
← Dropbox + RSS integrations

Group or Merge multiple RSS Feeds with RSS APIon New Folder from Dropbox API

Pipedream makes it easy to connect APIs for RSS, Dropbox and 700+ other apps remarkably fast.

Trigger workflow on
New Folder from the Dropbox API
Next, do this
Group or Merge multiple RSS Feeds with the RSS API
No credit card required
Trusted by 250,000+ developers from startups to Fortune 500 companies:
Trusted by 250,000+ developers from startups to Fortune 500 companies

Developers Pipedream

Getting Started

This integration creates a workflow with a Dropbox trigger and RSS action. When you configure and deploy the workflow, it will run on Pipedream's servers 24x7 for free.

  1. Select this integration
  2. Configure the New Folder trigger
    1. Connect your Dropbox account
    2. Select a Path
    3. Configure Recursive
    4. Configure dropboxApphook
  3. Configure the Group or Merge multiple RSS Feeds action
    1. Connect your RSS account
    2. Configure Feed URLs
    3. Optional- Configure Merge
  4. Deploy the workflow
  5. Send a test event to validate your setup
  6. Turn on the trigger

Details

This integration uses pre-built, open source components from Pipedream's GitHub repo. These components are developed by Pipedream and the community, and verified and maintained by Pipedream.

To contribute an update to an existing component or create a new component, create a PR on GitHub. If you're new to Pipedream component development, you can start with quickstarts for trigger span and action development, and then review the component API reference.

Trigger

Description:Emit new event when a new folder is created. Make sure the number of files/folders in the watched folder does not exceed 4000.
Version:0.0.5
Key:dropbox-new-folder

Trigger Code

import common from "../common.mjs";

export default {
  ...common,
  dedupe: "unique",
  type: "source",
  key: "dropbox-new-folder",
  name: "New Folder",
  version: "0.0.5",
  description: "Emit new event when a new folder is created. Make sure the number of files/folders in the watched folder does not exceed 4000.",
  async run() {
    const updates = await this.dropbox.getUpdates(this);
    for (const update of updates) {
      if (update[".tag"] == "folder") {
        this.$emit(update, this.getMeta(update.id, update.path_display));
      }
    }
  },
};

Trigger Configuration

This component may be configured based on the props defined in the component code. Pipedream automatically prompts for input values in the UI and CLI.
LabelPropTypeDescription
DropboxdropboxappThis component uses the Dropbox app.
N/Adb$.service.dbThis component uses $.service.db to maintain state between component invocations.
PathpathstringSelect a value from the drop down menu.
Recursiverecursiveboolean

Also watch sub-directories and their contents.

dropboxApphook$.interface.apphook

Trigger Authentication

Dropbox uses OAuth authentication. When you connect your Dropbox account, Pipedream will open a popup window where you can sign into Dropbox and grant Pipedream permission to connect to your account. Pipedream securely stores and automatically refreshes the OAuth tokens so you can easily authenticate any Dropbox API.

Pipedream requests the following authorization scopes when you connect your account:

About Dropbox

Dropbox gives you secure access to all your files. Collaborate with friends, family, and coworkers from any device.

Action

Description:Retrieve multiple RSS feeds and return it grouped or merged into an array of items sorted by date.
Version:0.0.2
Key:rss-merge-rss-feeds

Action Code

import rssApp from "../../rss.app.mjs";
import Parser from "rss-parser";

export default {
  name: "Group or Merge multiple RSS Feeds",
  description: "Retrieve multiple RSS feeds and return it grouped or merged into an array of items sorted by date.",
  key: "rss-merge-rss-feeds",
  version: "0.0.2",
  type: "action",
  props: {
    rssApp,
    urls: {
      type: "string[]",
      label: "Feed URLs",
      description: "Enter either one or multiple URLs from any public RSS feed.\n\n**Example:** `[\"https://rss.nytimes.com/services/xml/rss/nyt/HomePage.xml\", \"https://www.theguardian.com/uk/technology/rss\"]`",
    },
    merge: {
      label: "Merge",
      type: "boolean",
      optional: true,
      default: true,
      description: "If `true`, all items are returned in a date sorted array. If `false`, each feed is returned as one result in the array.",
    },
  },
  methods: {
    ...rssApp.methods,
    getFeedDetails(feedResult) {
      return {
        title: feedResult.title,
        description: feedResult.description,
        lastBuildDate: feedResult.lastBuildDate,
        link: feedResult.link,
        feedUrl: feedResult.feedUrl,
      };
    },
    mergedResult(feeds) {
      let result = [];
      feeds.map((feedResult) => {
        const feed = this.getFeedDetails(feedResult);
        const innerResult = feedResult.items.map((item) => {
          return {
            feed,
            ...item,
          };
        });
        result = [
          ...result,
          ...innerResult,
        ];
      });
      result = result.sort((a, b) => {
        let aDate = new Date(a.isoDate);
        let bDate = new Date(b.isoDate);
        return bDate - aDate;
      });
      return result;
    },
    groupedResult(feeds) {
      let result = feeds.map((feedResult) => {
        const feed = this.getFeedDetails(feedResult);
        return {
          feed,
          items: feedResult.items,
        };
      });
      return result;
    },
  },
  async run() {
    /*
      1. If merge is true, each item will be placed into an array, a property { feed }
      will be added containing info on the feed, it will be sorted by date.
      2. If merge is false, each item will be grouped and placed into an array of feeds:
      [{ feed, items }, { feed, items }]
    */

    let parser = new Parser();
    const requests = this.urls.map((feedUrl) => parser.parseURL(feedUrl));
    const feeds = await Promise.all(requests);

    if (this.merge) {
      return this.mergedResult(feeds);
    } else {
      return this.groupedResult(feeds);
    }
  },
};

Action Configuration

This component may be configured based on the props defined in the component code. Pipedream automatically prompts for input values in the UI.

LabelPropTypeDescription
RSSrssAppappThis component uses the RSS app.
Feed URLsurlsstring[]

Enter either one or multiple URLs from any public RSS feed.

Example: ["https://rss.nytimes.com/services/xml/rss/nyt/HomePage.xml", "https://www.theguardian.com/uk/technology/rss"]

Mergemergeboolean

If true, all items are returned in a date sorted array. If false, each feed is returned as one result in the array.

Action Authentication

The RSS API does not require authentication.

About RSS

Real Simple Syndication

More Ways to Connect RSS + Dropbox

About Pipedream

Stop writing boilerplate code, struggling with authentication and managing infrastructure. Start connecting APIs with code-level control when you need it — and no code when you don't.

Into to Pipedream
Watch us build a workflow
Watch us build a workflow
7 min
Watch now ➜
"The past few weeks, I truly feel like the clichéd 10x engineer."
@heyellieday