Skip to content

Commit 0993254

Browse files
committed
Update readme
1 parent a88ad2d commit 0993254

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

README.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -239,6 +239,21 @@ percollate epub --individual https://example.com/posts.xml
239239

240240
The content of the articles is read from the feed file rather than fetched anew. The content is passed through the DOM enhancements and sanitized as usual, but it’s not processed with Readability.
241241

242+
<details>
243+
<summary>To fetch the HTML pages for entries in Atom and RSS feeds</summary>
244+
245+
If instead you’d like to fetch and process the original HTML pages corresponding to the entries in the Atom/RSS feed, use [`hred`](https://github.com/danburzo/hred/) to extract the URLs and feed them to percollate with `xargs`.
246+
247+
Below is an example `hred` query for extracting URLs from Atom feeds, explained in more detail on the [hred recipes](https://danburzo.ro/toolbox/hred/) page.
248+
249+
```bash
250+
curl https://example.com/posts.xml | \
251+
hred -xcr 'entry > link:is([rel=alternate],:not([rel]))@href' | \
252+
xargs percollate epub
253+
```
254+
255+
</details>
256+
242257
### The `--css` option
243258

244259
The `--css` option lets you pass a small snippet of CSS to percollate. Here are some common use-cases:

0 commit comments

Comments
 (0)