Open chocolateboy opened 6 years ago
Your request is justified, of course. I’m open for a PR.
🎉 The good news is that the REPL, which I’m using for exploring feeds or when working on Pickup, can do just that now.
$ ./repl.js
Just the feed.
read(get('https://rss.art19.com/call-your-girlfriend'), Feed)
Entries only.
read(get('https://rss.art19.com/call-your-girlfriend'), Entry)
Just entry titles.
read(get('https://rss.art19.com/call-your-girlfriend'), Entry, 'title')
Limiting the number of items.
read(get('https://rss.art19.com/call-your-girlfriend'), Entry, 3)
Combined, the summary of three entries.
read(get('https://rss.art19.com/call-your-girlfriend'), Entry, 'summary', 3)
It would be nice if there was a way to directly distinguish between feed records and entry records in the output of the CLI command. Currently, they are both emitted as objects with largely overlapping fields. In practice, the feed record always appears to be emitted last, so this can be used to distinguish them, but that's hacky and defeats the purpose of the streaming API. It would be nice if there was a direct way e.g. a
type
field: