Guest User

Untitled

a guest
Feb 4th, 2013
624
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #!/bin/sh
  2. HTML_FILE1="$(mktemp)"
  3. HTML_FILE2="$(mktemp)"
  4. COOKIES_FILE="$(mktemp)"
  5. wget --save-cookies $COOKIES_FILE --keep-session-cookies -O $HTML_FILE1 "######PLACEZ ICI VOTRE URL ADE######"
  6. wget --load-cookies $COOKIES_FILE -O $HTML_FILE2 "http://ade52-inpg.grenet.fr/ade/custom/modules/plannings/imagemap.jsp?clearTree=false&width=1044&height=629"
  7. wget --load-cookies $COOKIES_FILE -O edt.gif "http://ade52-inpg.grenet.fr$(cat "$HTML_FILE2" | grep img | sed 's/^.*src="\([^"]*\)".*$/\1/g')"
  8. echo "http://ade52-inpg.grenet.fr$(cat "$HTML_FILE2" | grep img | sed 's/^.*src="\([^"]*\)".*$/\1/g')"
  9.  
  10. rm -f $HTML_FILE1
  11. rm -f $HTML_FILE2
  12. rm -f $COOKIES_FILE
RAW Paste Data