~chee/partyfingerd

ref: c1f5e23af183250d81d82188d32fc72084b72592 partyfingerd/grab-post-as-text -rwxr-xr-x 320 bytes
c1f5e23achee allow posts to be fingered as though they were users a month ago
                                                                                
1
2
3
4
5
6
7
8
#!/bin/sh
curl -L 2>/dev/null https://chee.party/$1 \
	 | 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' \
	 | fold -w 72