Last active
March 12, 2024 13:55
-
-
Save vmetnev/a247650db4e0a4272aa0804d772ae965 to your computer and use it in GitHub Desktop.
rss xml to json
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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