4 ms·
curl -s 'https://www.economist.com/united-states/2022/11/24/why-its-hard-to-buy-deodorant-in-manhattan https://www.economist.com/united-states/2022/11/24/why-it
by cratermoon 4y ago
curl -s 'https://www.economist.com/united-states/2022/11/24/why-its-hard-to-buy-deodorant-in-manhattan https://www.economist.com/united-states/2022/11/24/why-its-h...' | grep articleBody | jq -r .articleBody 2>/dev/null | paps --font=ETBembo | open -fa Preview
- kmstout 4y agoInstead of `paps`, you could also try ... | sed -re 's/$/\n\n/' | uniq | man -Tps -l - | ... If you have groff, you can also have `man` go straight to PDF.
- cratermoon 4y agoI chose paps over enscript or groff because it handles utf8. With groff you get garbage like âshrinkâ, and enscript generates "Buttons marked â\200\234call for assistanceâ\200\235". Fun times
- kmstout 4y agoI'll remember this if I ever recreate my RSS to five-column-PDF-emailed-to-myself-every-morning setup. I had to do some ungood things to make BBC articles safe for LaTeX back then.