|
|
|
|
|
by 3xblah
2257 days ago
|
|
To get an index of all C2 wiki pages curl https://proxy.c2.com/wiki/remodel/pages/ > 1.html
To get a wiki page in JSON and convert it to textfile without using gratuitous JavascriptOptional: feed through fmt(1) curl https://proxy.c2.com/wiki/remodel/pages/EgolessProgramming|tr -d '\n'|sed 's/ *//;s/{ \"date\": \"//;s/ \"text\": \"//;s/\",/\
/
s/\. :)//;s|\\r\\n\*|\
\
\*|g
s|\\r\\n|\
|g
s/'''//g; s/''//g;s/\\\\"/"/g;s/\\"/"/g;s/\\t//g;s/ ://g;s/ */ /g;s/\" }$//' > 1.txt
To search the wiki curl https://proxy.c2.com/cgi/fullSearch/?search=$1|sed 's|href=wiki.|href=https://proxy.c2.com/wiki/remodel/pages/|g' > 1.html
|
|
Also appears quote missing in second code block