~chee/partyfingerd

ref: 9a39351fff5c7dd53627e5e9a30830273d0902bf partyfingerd/grab-latest-post-as-text -rwxr-xr-x 298 bytes
9a39351fchee add pandoc crime a month ago
                                                                                
1
2
3
4
5
6
7
#!/bin/sh
curl 2>/dev/null https://chee.party/ \
	 | html2 2>/dev/null \
	 | awk '/@class=entry-content/{flag=1;next}/!= .entry-content/{flag=0}flag' \
	 | 2html 2>/dev/null \
	 | pandoc --from html --to markdown \
	 | awk '/::: {itemprop="description articleBody"}/{flag=1;next}/:::/{flag=0}flag'