Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @echo off
- GOTO:REM
- ==========================================
- downloads all the comics from explosm until page 3450
- wget:
- -H: takes hosted images/files
- -p: get all images needed to display the page (not only index.html)
- This is the part 2 of my idea, achieved. Part one can be found nearby.
- Images are stored in the db/files/Comics folder.
- This solves the question about how to get only images from web pages instead of .html files. See wget tags above.
- To be saved as .bat file.
- ==========================================
- :REM
- set a=http://explosm.net/comics/
- set b=/
- set i=15
- set limit=3450
- :loop
- set url=%a%%i%%b%
- wget -H -p -A jpg,png,gif %url%
- set /a i+=1
- if not %i%==%limit% goto loop
- pause > nul
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement