~chee/partyfingerd

ce4c469b33bd8cc04ab4351926184e8c40bfed3f — chee 12 days ago c1f5e23
filter out unicode // get a different set of problems
1 files changed, 3 insertions(+), 6 deletions(-)

M grab-post-as-text
M grab-post-as-text => grab-post-as-text +3 -6
@@ 1,8 1,5 @@
#!/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
    | hxclean \
    | hxselect -c '#content article:nth-child(2) .entry-header, #content article:nth-child(2) .entry-content' \
    | html2text-cpp -ascii -links -nobs -width 72