On 31.12.2013 18:43, Vladimir Macek wrote:
> Kdo z vas jeste do konce roku programuje, spusti nasledujici prikaz a posle
> (uverejnitelny) vzkaz:
>
> python -c "import urllib; urllib.urlopen('http://sandbox.cz/nonexistent/' +
> raw_input('Mesto, vzkaz: '))"
>
> Zitra zverejnim, bude-li co. :-)
>Tedy, pratele, predpokladam, ze smysl pro humor a moznost odeslat drobny GET request Pythonem mel kazdy, kdo se v noci vyskytoval u mailu. Z nasledujiciho vysledku mam dojem, ze to s nami neni az tak spatky. Zahrnul jsem i dnesek. :-) *$ fgrep 'GET /nonexistent/' $APACHE_LOG | grep -v ^$MOJE_IP | fgrep Python-urllib | cut -d' ' -f4- | sed -e 's/%20/ /g'** **[31/Dec/2013:18:46:17 +0100] "GET /nonexistent/PF2014 HTTP/1.0" 404 13140 "-" "Python-urllib/1.17"** **[31/Dec/2013:19:05:05 +0100] "GET /nonexistent/Zlin, %22Python, what else?%22 - to jak jako %22B%ECt %9Fi neb%ECt?%22:-) Petr HTTP/1.0" 404 13140 "-" "Python-urllib/1.17"** **[31/Dec/2013:19:06:58 +0100] "GET /nonexistent/Brno, Hezky novy rok! HTTP/1.0" 404 15982 "-" "Python-urllib/1.17"** **[31/Dec/2013:19:07:07 +0100] "GET /nonexistent/ HTTP/1.0" 404 13032 "-" "Python-urllib/1.17"** **[01/Jan/2014:00:54:37 +0100] "GET /nonexistent/In the middle of NoWhere. Hello, world. HTTP/1.0" 404 13032 "-" "Python-urllib/1.17"** **[01/Jan/2014:16:48:29 +0100] "GET /nonexistent/Londyn; prestehoval jsem se, abych byl o hodinu mladsi HTTP/1.0" 404 12654 "-" "Python-urllib/1.17"** ** *Hezky novy rok,* * -- : Vladimir Macek : http://macek.sandbox.cz : +420 608 978 164 : UNIX && Dev || Training : Python, Django : GPG key 1F059424 _______________________________________________ Python mailing list [email protected] http://www.py.cz/mailman/listinfo/python Visit: http://www.py.cz
