Advertisement
Io-EE

get comics with wget

Jan 31st, 2014
59
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.72 KB | None | 0 0
  1. @echo off
  2. GOTO:REM
  3. ==========================================
  4.  
  5. downloads all the comics from explosm until page 3450
  6. wget:
  7. -H: takes hosted images/files
  8. -p: get all images needed to display the page (not only index.html)
  9.  
  10. This is the part 2 of my idea, achieved. Part one can be found nearby.
  11. Images are stored in the db/files/Comics folder.
  12.  
  13. This solves the question about how to get only images from web pages instead of .html files. See wget tags above.
  14.  
  15. To be saved as .bat file.
  16.  
  17. ==========================================
  18. :REM
  19. set a=http://explosm.net/comics/
  20. set b=/
  21.  
  22. set i=15
  23. set limit=3450
  24.  
  25. :loop
  26. set url=%a%%i%%b%
  27. wget -H -p -A jpg,png,gif %url%
  28. set /a i+=1
  29. if not %i%==%limit% goto loop
  30. pause > nul
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement