3 ms·
https://webcache.googleusercontent.com/search?q=cache:https://www.bloomberg.com/news/articles/2024-01-23/apple-car-ev-set-to-debut-in-2028-with-limited-autonomo
by 1vuio0pswjnm7 3y ago
https://webcache.googleusercontent.com/search?q=cache:https://www.bloomberg.com/news/articles/2024-01-23/apple-car-ev-set-to-debut-in-2028-with-limited-autonomous-driving https://webcache.googleusercontent.com/search?q=cache:https:...
To read text-only:
#!/bin/sh
x=$(echo x|tr x '\34');
grep -Eo '("value":"[^"]+)|("type":"paragraph")|("type":"br")' \
|sed "
s/\"type\":\"paragraph\"/$x$x/g;
s/\"type\":\"br\"/$x$x/g;
s/.\{9\}//;
s/’/\'/g;
s/—/-/g;
s/̶[01];/\"/g;
" \
|tr -d '\12' \
|tr '\34' '\12' \
|fmt
A small, dedicated C program is what I use for outputting formatted text that is easy on the eye from Bloomberg's htmljson monstrosity, but the above shell script ("1.sh") should also work.
busybox wget -O 1.htmljson https://webcache.googleusercontent.com/search?q=cache:https://www.bloomberg.com/news/articles/2024-01-23/apple-car-ev-set-to-debut-in-2028-with-limited-autonomous-driving
1.sh < 1.htmljson > 1.txt
less 1.txt