3 ms·
Paywall, can't read anything past the summary of the problem
by hyperhopper 4y ago
Paywall, can't read anything past the summary of the problem
- kmstout 4y ago$ curl -s 'https://www.economist.com/united-states/2022/11/24/why-its-hard-to-buy-deodorant-in-manhattan' | grep articleBody | jq -r .articleBody 2>/dev/null | fmt
- Terretta 4y agoBest trick on HN today.
- 6LLvveMx2koXfwn 4y agogood trick, but it really highlights how thin the article is.
- jaccarmac 4y agoAs it happens, you don't need much content to convince people that petty criminals are scum and the only solution is more and meaner cops and prisons. After all, the retail lobby says so!
- the-printer 4y agoYou just taught me something
- cratermoon 4y agocurl -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.
- rglullis 4y agoBrave Browser with speed reader