3 ms·
"Is there a text version of this thing." Text-only browser is easiest way. links -dump https://www.nrk.no/chasing-climate-change-1.14859595 Netcat-like pr
by 3xblah 7y ago
"Is there a text version of this thing."
Text-only browser is easiest way.
links -dump https://www.nrk.no/chasing-climate-change-1.14859595
Netcat-like programs, or wget-like http clients, will also suffice
x=$(echo y|tr y '\004');
curl https://www.nrk.no/chasing-climate-change-1.14859595|sed "s/<p /$x&/g;s/ *//"|tr '\004' '\n'|sed -n '/<p /!d;s/<\/p>.*/<\/p>/;/./{/<p /,/<\/p>/p;}' > 1.html
firefox 1.html
Add the 1080p videos to the end of the text:
curl https://www.nrk.no/chasing-climate-change-1.14859595|grep -o https[^\"]*1080p.mp4|sed 's/\\u002F/\//g;s/.*/<p><a href=& \/>&<\/a><\/p>/'|uniq >> 1.html
firefox 1.html
- throwaway5752 7y agoThanks, someone already posted https://news.ycombinator.com/item?id=22270107 https://news.ycombinator.com/item?id=22270107 ... I asked for the same reason I need the text representation. I don't have time right now, but want to read it. I don't have any huge problem with site format or firefox, I just needed something more efficient.