working rss feed to nostr publish

This commit is contained in:
2023-11-24 00:43:28 -05:00
parent 06edcb57ae
commit 88d2f9cfec
8396 changed files with 783105 additions and 0 deletions
+25
View File
@@ -0,0 +1,25 @@
// eval.js
// to quickly test with a single url or file
import { extract } from './src/main.js'
const run = async (url) => {
try {
console.time('extract-feed')
const feed = await extract(url)
console.log(feed)
console.timeEnd('extract-feed')
} catch (err) {
console.log(err.message)
}
}
const init = (argv) => {
if (argv.length === 3) {
const url = argv[2]
return run(url)
}
return 'Nothing to do!'
}
init(process.argv)