one line shell script to count number of entries
echo -n "Number of entries... "; wget -q -O - http://www.pyweek.org/5/entries/ | grep 'clear: right' | wc -l
(log in to comment)
echo -n "Number of entries... "; wget -q -O - http://www.pyweek.org/5/entries/ | grep 'clear: right' | wc -l
(log in to comment)
I noticed that someone mentioned pyweek in passing in an obscure comment on an obscure posting today that resulted in the single-highest number of hits from a single "news" posting about pyweek for a 24-hour period.
If we could only get the challenge mentioned as an article :)
That is a few chars shorter, being only 94 chars long, the above is 107 :)
That is a few chars shorter, being only 94 chars long, the above is 107 :)
BTW, we are at 70 now, woohoo! still a quite a bit off from last time though...
illume: but that isn't python ...
neko: nice :)
I'm such a cheater. :)
(or, its 70 character python alternative:
)
import os;os.system("wget -qO- xrl.us/5pyw|grep -c \<dt")
let us all cheat!
exec(raw_input())
still 17 though