Real Simple Syndication
Retrieve multiple RSS feeds and return a merged array of items sorted by date See documentation
With the RSS API you have the power to create powerful tools and applications.
RSS is a great way to reliably subscribe to, track and build around your
favorite content sources. Here are some examples of things you can create
using the RSS API:
module.exports = defineComponent({
props: {
rss: {
type: "app",
app: "rss",
}
},
async run({steps, $}) {
// Retrieve items from a sample feed
const Parser = require('rss-parser');
const parser = new Parser();
const stories = []
// Replace with your feed URL
const url = "https://pipedream.com/community/latest.rss"
const feed = await parser.parseURL(url);
const { title, items } = feed
this.title = title
if (!items.length) {
$end("No new stories")
}
this.items = items
},
})
With Bubble, you can build all sorts of web applications without having to
write any code.
Here are some examples of what you can build with Bubble:
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
bubble: {
type: "app",
app: "bubble",
}
},
async run({steps, $}) {
return await axios($, {
url: `${this.bubble.$auth.root_url}`,
headers: {
Authorization: `Bearer ${this.bubble.$auth.api_key}`,
},
})
},
})