daily pastebin goal
40%
SHARE
TWEET

Elektor - Download

a guest Sep 21st, 2016 34 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. @echo off
  2.  
  3. set USER=me@domain.com
  4. set PWD=password
  5.  
  6. call :login
  7. for /L %%i in (1,1,39883) do call :download %%i
  8. goto :eof
  9.  
  10. :login
  11. wget --keep-session-cookies --cookies=on --save-cookies cookies3.txt -O login.htm --no-check-certificate --post-data "username=%USER%&password=%PWD%&remember=1" https://www.elektormagazine.fr/account/login
  12. goto :eof
  13.  
  14. :download
  15. echo.
  16. echo ======================= %1 ============================
  17. echo ======================= %1 ============================
  18. echo ======================= %1 ============================
  19. echo.
  20. set /a modulo=%1 %% 10
  21. if %modulo% EQU 0 call :login
  22. wget --user-agent="Mozilla/5.0 (Macintosh; Intel Mac OS X 10.8; rv:21.0) Gecko/20100101 Firefox/21.0" -N -e robots=off -l 1 -r -I /files --no-check-certificate --load-cookies cookies3.txt -p https://www.elektormagazine.fr/magazine/elektor-199001/%1
  23. goto :eof
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top