Thursday, September 11, 2008

Looking for Group downloader

Got bored waiting for the Looking for Group archive pages to load, so I wasted more time and wrote a Looking for group batch file for windows.

I needed wget.exe for windows found at http://pages.interlog.com/~tcharron/wgetwin.html
and then just had to butcher together a batch file.

Hopefully you know what do with the text below to create a batch file,
If you don't goto http://www.computerhope.com/batch.htm

I know my batch file might not be pretty but it works, you just need to specify which pages you would like to download, if you want to download all the current ones type: download.bat 1 1000
That should cover it.

download.bat

FOR /L %%A IN (%1,1,%2) DO (
if %%A leq 9 wget http://archive.lfgcomic.com/lfg000%%A.gif
if %%A geq 10 (
if %%A leq 99 wget http://archive.lfgcomic.com/lfg00%%A.gif)
if %%A geq 100 (
if %%A leq 999 wget http://archive.lfgcomic.com/lfg0%%A.gif)
if %%A geq 1000 (
if %%A leq 9999 wget http://archive.lfgcomic.com/lfg%%A.gif)
)

README.txt

put wget.exe and download.bat in your LFG directory

open cmd
cd c:\yourlfgdirectory
type: download.bat start_page_number end_page_number
eg for pages 1 to 10 type: download.bat 1 10

No comments: