Skip to content

Instantly share code, notes, and snippets.

@vmetnev
Last active March 12, 2024 13:55
Show Gist options
  • Save vmetnev/a247650db4e0a4272aa0804d772ae965 to your computer and use it in GitHub Desktop.
Save vmetnev/a247650db4e0a4272aa0804d772ae965 to your computer and use it in GitHub Desktop.
rss xml to json
// first
import pkg from 'rss-to-json';
const {parse} = pkg;
rss()
async function rss () {
var rss = await parse('https://seekingalpha.com/market_currents.xml');
console.log(JSON.stringify(rss, null, 3));
};
// second
import { extract } from '@extractus/feed-extractor'
const result = await extract('https://seekingalpha.com/tag/ipo-analysis.xml')
console.log(result)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment