|
|
|
|
|
by textmode
914 days ago
|
|
Normally I use yy030 but I have been experimenting with this instead. Seems to be slightly faster and smaller than similar programs from html-xml-utils. https://www.w3.org/Tools/HTML-XML-utils/man1/ Compile: links -no-connect -dump https://news.ycombinator.com/item?id=38727772 \
|sed '1,4d;77,$d;s/[ ]\{6\}//' \
|flex -8Cem;cc -O3 -std=c89 -W -Wall -pipe lex.yy.c -static -o yy044
strip -s yy044
Example usage: # NB. not a real cookie
curl -H "cookie=user=santa&K7RGzmUtAoKv9OIRMfQ9bfwYpiDEuypp" -siA "" \
https://news.ycombinator.com \
|host=news.ycombinator.com/ yy044 r \
|sed -n 's/&/\&/g;/vote/p'
|
|