Sobre xkcd

1 comment

Posted on 20th September 2008 by omarcs in Blog

, ,

Pues tomé el ejemplo de aquí http://snippets.dzone.com/posts/show/4658, y lo modifiqué.

Sirve para bajar todos los comix de xkcd, (y ponerles un número secuencial)

Sólo hay que cambiar la secuencia inicial, de acuerdo a los números que se quieren obtener.

for i in `seq 1 478`
do
wget http://xkcd.com/$i/
wget `grep http://imgs.xkcd.com/comics/ index.html | head -1 | cut -d\” -f2` -P $i
mv $i/*.* `printf “%03d” $i`-`ls $i`
rm -rf $i
rm index.html
done

aahh!!, lo olvidaba…. Es para bash

Share and Enjoy:
  • Print
  • Digg
  • del.icio.us
  • Facebook
  • Google Bookmarks
  • email
  • LinkedIn
  • StumbleUpon
  • Tumblr
  • Twitter
1 Comments
  1. Sue says:

    este… creo que no soy muy buena entendiendo a los ingenieros…

    20th September 2008 at 5:21 am

Leave a comment