Howto: Download 814 maps for Spring with easily.

Howto: Download 814 maps for Spring with easily.

Discuss everything related to running Spring on your chosen distribution of Linux.

Moderator: Moderators

Post Reply
User avatar
Vadi
Posts: 446
Joined: 03 Jan 2008, 14:51

Howto: Download 814 maps for Spring with easily.

Post by Vadi »

This'll download 814 maps from the evolutionrts.info server for ya. They said they got lots of bandwidth and don't mind. So, just copy/paste the whole thing below into the terminal, and leave it overnight (make sure you have enough disk space tho!)
cd ~/.spring/maps
wget -c -np -nd -A sd7,sdz -r http://evolutionrts.info/maps
Lo and behold the power of the terminal, as it'll start downloading everything for you. Note that if you'll need to stop the downloading, copy/pasting the same command again will work - it'll skip over the already downloaded files.

Have fun! :P

Edited: Thanks to bibim and lurker for providing a much shorter version!
Last edited by Vadi on 24 Mar 2008, 17:56, edited 3 times in total.
User avatar
bibim
Lobby Developer
Posts: 952
Joined: 06 Dec 2007, 11:12

Re: Howto: Download 814 maps for Spring with easily.

Post by bibim »

lol, what about just making a script such as this one:

Code: Select all

#!/usr/bin/perl -w
use strict;

my $baseUrl="http://evolutionrts.info/maps";

chdir("$ENV{HOME}/.spring/maps");

system("wget $baseUrl -O springMapIndex.html");

if(! open(INDEX,"<springMapIndex.html")) {
  print "ERROR - Unable to retrieve map list\n";
  exit;
}

while(<INDEX>) {
  system("wget -nc $baseUrl/$1") if(/<a href="([^\;]+\.sd7)">/);
}
close(INDEX);
unlink("springMapIndex.html");
User avatar
lurker
Posts: 3842
Joined: 08 Jan 2007, 06:13

Re: Howto: Download 814 maps for Spring with easily.

Post by lurker »

wget -c -np -r http://evolutionrts.info/maps should do the trick.
User avatar
Vadi
Posts: 446
Joined: 03 Jan 2008, 14:51

Re: Howto: Download 814 maps for Spring with easily.

Post by Vadi »

Smart people use that... dumb people copy links from firefox, replace http with wget -nc http, and paste!
HAARP
Posts: 182
Joined: 06 Apr 2006, 07:18

Re: Howto: Download 814 maps for Spring with easily.

Post by HAARP »

for i in ...
User avatar
Vadi
Posts: 446
Joined: 03 Jan 2008, 14:51

Re: Howto: Download 814 maps for Spring with easily.

Post by Vadi »

lurker wrote:wget -c -np -r http://evolutionrts.info/maps should do the trick.
Your command does work, but it's sorta ignoring the maps with the same name that I downloaded before :(
User avatar
LordMatt
Posts: 3393
Joined: 15 May 2005, 04:26

Re: Howto: Download 814 maps for Spring with easily.

Post by LordMatt »

lurker wrote:wget -c -np -r http://evolutionrts.info/maps should do the trick.
lol
User avatar
bibim
Lobby Developer
Posts: 952
Joined: 06 Dec 2007, 11:12

Re: Howto: Download 814 maps for Spring with easily.

Post by bibim »

lurker wrote:wget -c -np -r http://evolutionrts.info/maps should do the trick.
Actually this also downloads all unwanted files such as indexes for each possible sort ("index.html?C=D;O=A" etc...). But I agree, in this case these files are really lighweight in regard to all maps ;)

It's possible to filter them easily however (and remove automatic directory creation as well):

Code: Select all

wget -c -np -nd -A sd7,sdz -r http://evolutionrts.info/maps
btw, it seems the "maps" directory of evolutionrts.info also contains mods ("BA6.1.sd7" for example)
User avatar
Vadi
Posts: 446
Joined: 03 Jan 2008, 14:51

Re: Howto: Download 814 maps for Spring with easily.

Post by Vadi »

Thanks bibim! :-)
User avatar
lurker
Posts: 3842
Joined: 08 Jan 2007, 06:13

Re: Howto: Download 814 maps for Spring with easily.

Post by lurker »

bibim wrote:btw, it seems the "maps" directory of evolutionrts.info also contains mods ("BA6.1.sd7" for example)
That would be AF's site's fault, as I grabbed a lot of these from his map folder.
User avatar
bibim
Lobby Developer
Posts: 952
Joined: 06 Dec 2007, 11:12

Re: Howto: Download 814 maps for Spring with easily.

Post by bibim »

Vadi wrote:Edited: Thanks to bibim for providing a much shorter version!
Well, tbh I just improved slightly lurker's version, he deserves the credits :wink:
Radtoo
Posts: 50
Joined: 12 May 2006, 14:21

Re: Howto: Download 814 maps for Spring with easily.

Post by Radtoo »

Most users will presumably feel more happy with http://www.downthemall.net/ and firefox.

Not to downplay the merit of having a command line script, too, just mentioning an alternative to it. :)
User avatar
Vadi
Posts: 446
Joined: 03 Jan 2008, 14:51

Re: Howto: Download 814 maps for Spring with easily.

Post by Vadi »

Know that one... but you'd have to click on every single map, no?
Radtoo
Posts: 50
Joined: 12 May 2006, 14:21

Re: Howto: Download 814 maps for Spring with easily.

Post by Radtoo »

Know that one... but you'd have to click on every single map, no?
No. You can download everything in one batch.

Right-click anywhere on that webpage except on a link, choose downthemall, mark topmost map to lowest map (shift-select), rightclick and say check selected items, download.

You could also download the maps by extension (adding an extension filter is the same as selecting them in the list, it just does the checkboxes at one point), or simply every item availiable (not too much overhead anyways ;P).
User avatar
Vadi
Posts: 446
Joined: 03 Jan 2008, 14:51

Re: Howto: Download 814 maps for Spring with easily.

Post by Vadi »

I see.

The only prob is that I don't keep firefox open everytime, while a terminal window somewhere on my other side of the cube won't take up much visual space / memory.
morphriz
Posts: 1
Joined: 23 Dec 2008, 00:52

Re: Howto: Download 814 maps for Spring with easily.

Post by morphriz »

Try

Code: Select all

wget -c -np -nd -nc -A sd7,sdz -r http://evolutionrts.info/maps
Will skip maps you allready have..
Caradhras
Posts: 381
Joined: 31 Jul 2006, 21:49

Re: Howto: Download 814 maps for Spring with easily.

Post by Caradhras »

How much space do all the maps use?
User avatar
Vadi
Posts: 446
Joined: 03 Jan 2008, 14:51

Re: Howto: Download 814 maps for Spring with easily.

Post by Vadi »

8.5GB

(If anyone wants to repeat this later, use the [^.]*\.\w+\s+([.0-9]*).* regex to get the size (yeah, it fails on maps with dots, feel free to suggest a better one) and then just paste them into qalculate)
Post Reply

Return to “Linux”