Last active
May 15, 2022 15:25
-
-
Save kamimi01/51bdbe27ea90b627302cd2ba0adb9ec6 to your computer and use it in GitHub Desktop.
rss-parserのテストコード
This file contains 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
import Parser from 'rss-parser'; | |
const parser = new Parser(); | |
(async () => { | |
const feed = await parser.parseURL('https://note.com/kamimi01/rss'); | |
console.log(feed.title); | |
feed.items.forEach(item => { | |
console.log(item.title); | |
console.log(item.link); | |
console.log(item.description); | |
}); | |
})(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment