Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @echo off
- GOTO:REM
- ==========================================
- downloads all the html files of the comics from explosm until page 3450
- I have then to get the names of the images stored in the urls
- This is part 1 of the idea
- Learned lots of interesting stuff with this:
- -how to increase a variable in batch
- -how to create an alternative kind of loop in batch
- -how to give variables to wget in batch
- -how to add text variables in batch
- -how to make comments in batch
- -how to rename a url or file with wget
- The code may be dirty, never learned batch so idk.
- Would probably been way simpler with greasemonkey and javascript, best would have been chickenfoot with firefox 3.6
- ==========================================
- :REM
- set a=http://explosm.net/comics/
- set b=/
- set i=15
- set limit=3450
- :loop
- set url=%a%%i%%b%
- wget -A jpg %url% --output-document="file"%i%".html"
- set /a i+=1
- if not %i%==%limit% goto loop
- pause > nul
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement