|
|
|
|
|
by brigandish
1814 days ago
|
|
May I suggest a temp file? (and the other change is for a Mac) tmp=$(mktemp).htm; curl https://rnz.shorthandstories.com/yoghurt-mafia/embed.js \
| sed 's/<em>//g;s/<\/em>//g'| tr -cd '[ -~]'|grep -Eo '(<p c.{10}[^>]*>)|(https://[^ ]*.jpeg)' \
| uniq | sed '/^https.*jpeg$/s/.*/<li><a href=&>&<\/a><\/li>/g' > $tmp;
open -a Firefox $tmp
|
|