~chee/partyfingerd

9a39351fff5c7dd53627e5e9a30830273d0902bf — chee a month ago 076d770
add pandoc crime
2 files changed, 8 insertions(+), 0 deletions(-)

A grab-latest-post-as-text
M install
A grab-latest-post-as-text => grab-latest-post-as-text +7 -0
@@ 0,0 1,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'

M install => install +1 -0
@@ 3,4 3,5 @@ deno compile --allow-net --allow-run fingerd.ts
sudo mv fingerd /bin/partyfingerd
sudo cp partyfingerd.service /etc/systemd/system/
sudo systemctl enable --now partyfingerd
sudo cp grab-latest-post-as-text /bin/
echo ready for fingering