Created
December 23, 2020 08:01
-
-
Save vini-btc/1f76784ad4059c180f52fc51532391a5 to your computer and use it in GitHub Desktop.
Embedding Medium Posts - 1
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
const Parser = require('rss-parser') | |
const fs = require('fs') | |
const parser = new Parser() | |
(async () => { | |
const feed = await parser.parseURL('http://medium.com/feed/@viniwrites') | |
fs.writeFileSync('latestPosts.json', JSON.stringify(feed, null, '\t')) | |
})() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment