wallbase – Download wallpapers the easy way (Windows Version using Cygwin)

These instructions are for Windows Users who would like to use the bash script to download wallpapers from Wallbase.
Please follow these steps to get the wallbase script running under Windows.
I have personally tested them to be working under Windows XP.
- Download and install Cygwin
-
While installing choose the download source as Install from internet

-
When asked to choose a install directory choose a suitable directory.
I have selected C:\cygwin
-
When the option comes to Select Packages, type wget.

-
Once installed Cygwin will put you in a shell at your home directory location.

To find this location on your hard disk
- Go to the location where you installed Cygwin
- Search for a folder called home
- Inside the home folder search for a folder by your Windows user name.
For instance my Windows user name is Lucifer and I installed Cygwin at C:\cygwin. So my home folder would be C:\cygwin\home\Lucifer.
Similarly search for your home folder
-
Now download Notepad++ for the next steps.
- Start Notepad++ and go to Settings > Preferences > New Document/Default Directory
-
Set the New Document > Format option to Unix

Save the changes and restart Notepad++.
This is to ensure that the line breaks do not cause any problem. - Once you have located your home folder as defined in the previous step, create a file called wallbase.sh using Notepad++.
- Next copy the contents of the script available at wallbase – Download wallpapers the easy way, make the necessary changes and save the script.
A point to note here is the section LOCATION=/location/to_your/wallpapers_folder under the Configuration Options.
- For me I set the value /location/to_your/wallpapers_folder as /home/Lucifer/wallpapers_folder.
- This would physically map to C:\cygwin\home\Lucifer\wallpapers_folder.
- This folder is basically a folder which is located in your Cygwin home folder which was described earlier.
- Make sure that the folder wallpapers_folder exists.
- You can name the folder anything. Just make sure you make the necessary changes in the script.
-
Now start Cygwin or if Cygwin is already running, type the following
$ ls
If you have followed everything correctly it should list the file wallbase.sh
- Now follow the rest of the instructions from wallbase – Download wallpapers the easy way.
Script Source : The updated script can be found at github: sevensins / Wallbase-Downloader. Please read through the configuration section before attempting to run the script.
Happy leeching ![]()
UPDATE [31-May-2012]:
Updates from MacEarl
- Added a Feature to download a specified Range of Wallpaper
UPDATE [24-December-2011]:
Updates from MacEarl and HansTester
- Fixed Login Feature (NSFW working again) (Thanks to HansTester)
- Implemented download uploads by specific User (Thanks to HansTester)
- Added Categorize Feature
- Source Cleanup
UPDATE [20-September-2011]:
Updates from MacEarl (received on 9-September-2011)
- Source Cleanup by Axa-Ru
- Fixed Download Code for new System
- Improved the check for already downloaded Files (much faster
)
UPDATE [27-August-2011]:
Updates from MacEarl
- Added a Feature to download “Your Favorites”
- Added a Feature to download “user created collections”
- Rewrote the check for already downloaded Files
(You now can rename or remove Wallpapers and they dont get downloaded again.
Eg. If you don”t like a wallpaper, just delete it and it won”t get downloaded again.
To re-enable the download of a specific Wallpaper you need to remove the
Wallpaper number from the file “downloaded.txt”)
UPDATE [25-August-2011]:
Updates from MacEarl
- The script has been re-written from scratch for the new wallbase.cc system
UPDATE [23-August-2011]:
Updates from MacEarl
- The “Show new wallpapers” option is available only for registered users
UPDATE [22-August-2011]:
wallbase.cc says that since they want to create a community around the wallpapers and to make the Site more “family friendly”, hence the NSFW category is available only for registered users and not for anonymous users.
Updates from MacEarl
- Added a login feature to download NSFW content/category
cool
but stuck after’ls’ step
it shows:
wallbase.sh wallpapers
and after writing ./wallbase.sh , it shows
$ ./wallbase.sh
./wallbase.sh: line 1: syntax error near unexpected token `newline’
‘/wallbase.sh: line 1: `#!/bin/bash
Hi dino,
Did you follow step 9 fully ?
Just a thought..
Hello i have a problem too. I follwed the steps exatcly till step 8, i’ve created the file wallbase.sh in my /my_location/my_user_name. But when i type in console “$ ls” or “:~$ chmod a+x wallbase.sh” it tells me:
bash: $/:~$ command not found. So what now? 10x
Hi EpidemicOfHate
Can you just try the commands without the “$” or “:~S” prefixed at the beginning ??
Just try ls then chmod a+x wallbase.sh and see what happens..
Well, when i type just “1s” – samething bash command not found. After that i try with chmod a+x wallbase.sh and nothing happen – its not shows me bash command not found or anything. Then i try with ./wallbase.sh keyword and:
./wallbase.sh line 142 $’\r’: command not found
./wallbase.sh line 146 $’\r’: command not found
./wallbase.sh line 173 $’\r’: command not found
./wallbase.sh line 177 $’\r’: command not found
./wallbase.sh line 180 $’\r’: command not found
./wallbase.sh line 181 wget: command not found
./wallbase.sh line 182 $`\r: command not found
./wallbase.sh line 185 syntax error near unexpected token `$’\r”
./wallbase.sh line 185 for << count=0; count>;
./wallbase.sh line 185 for << count=0; count>;
the last error continue with “$MAX_RANGE”; count=count+’$THPP” >>
Do me a favour.. paste the section Configuration Options of your script.
Well, configuration options? U mean the configurations options wich are paste in my wallbase.sh or no?
I’ve copied and saved this:
###############################
### Configuration Options ###
###############################
# Define the maximum number of wallpapers that you would like to download MAX_RANGE=26460
MAX_RANGE=250
# For accepted values of resolution see Section 1
RESOLUTION=0
# For accepted values of aspect ratio see Section 2
ASPECTRATIO=0
# For accepted values of category see Section 3
CATEGORY=100
# For accepted values of topic see Section 4
TOPIC=123
# For accepted values for SIZE see Section 5
SIZE=gteq
# For accepted Thumbnails per page see Section 6
THPP=60
# For download location see Section 7
LOCATION=/location/to_your/wallpapers_folder
# Best of : see Section 8
TIME=0
# For Types see Section 9
TYPE=1
# For order Options see Section 10
ORDER=relevance
# See Section 11
ORDER_TYPE=desc
# See Section 12
QUERY=”$1″
###############################
### Configuration Options ###
###############################
here they are from my file (the upper one are from your site)
The command is ls aka alphabet L and alphabet S in lower-case and not 1s
Yes my mistake its ls, not 1s as i thought first, this is working but only when i type “ls”, with “$ ls” still bash command not found, and the problem is stil here with other commands.
mmh actually i think this is a problem of wrong line breaks.
Try to do the following.
open the Wallbase.sh and check every single Line break if it is the same as the original Script
after you corrected the line breaks which are different just type in chmod +x wallbase.sh and then ./wallbase.sh
This is the very same reason that I specifically mentioned Notepad++ in point 7
But boy do people read instructions !!!!
Yes i used notepad++
I cheked all Line Breaks and they are as the orginal ones. If 7sins wants i can upload the files somewhere.
mmh thats weird cause most of the lines that give you an error are empty
plus it seems like you didnt checked wget during the installation
Well, for wget you are right, i wasn’t cheked, because i didn’t saw a chek box, and i only type it in the search box.
Anyway still there are the rest of errors. Here u a screenshot.
http://imageshack.us/photo/my-images/571/cigwin.jpg/
mmh there is definitely something wrong, the first URL doesnt match
download this one and place it in your home folder and directly execute it (without chmod or any edits)
http://dl.dropbox.com/u/25313838/wallbasedown.sh
Well with this one its working perfectly. Here its my wallbase.sh – http://www.4shared.com/file/VryCEGJ8/wallbase_mine.html
if u want take a look of it.
Thanks a lot MacEarl for your help
7Sins thanks you too, the script is awesome and very very usefull.
and that doesnt work?
Because there are identically except for the path to your Wallpapers folder
Yes, its working perfect.
I don’t know why with the other one doesn’t work.
Well actually what did u use to create the file? Are u using Linux or Windows with Notepad++? And there might be a difference even with the Notepad++ – i don’t know.
Ah ok i know what the problem is.
Notepad++ creates DOS/Windows Files with the Standard Options.
You need to do the following (one of those):
Open an empty File paste in the Code, then go to Edit -> EOL Conversion -> Convert to UNIX Format
Or this
Before Opening a new Document goto Settings -> Preferences -> New Document… -> Format UNIX
Maybe you can add this to your Description, it would probably save some trouble
Yes, now i just create the file as u say with Unix conversion and its working again.
@EpidemicOfHate : Glad that its working at last
@MacEarl : Updated the instruction sets. Hope this should iron out any future issues
Yea me too.
thanks again.
macearl , can u plz reupload the file
link not working
Hi dino,
Just re-follow the steps and things should work fine
finally made it work
awesome job
a w e s o m e j o b
Glad that it’s working for you
actually it hadnt worked for me
i just download ‘epidemicofhate’ file and convert and configure it
but however great job
thanx
i m enjoying downloading
i give full wot rating and thumbs up in stumble
script isnt downloading nsfw images [no problem with sfw and sketchy] .using latest version of script .help . burning in lust
Seems like wallbase hates the script.
The NSFW purity filter has been done away with for anonymous users
Its been for 2 days (??) i guess…
They say its because they want to create a community around the wallpapers and to make the Site more “family friendly”
well just check your mails, i implemented a login feature
During Sign up you need to provide a username, password and email, so no personal data.
And you need to enter your Login Information in the Script.
For SFW and Sketchy Content you dont need a Account
I think that’s not correct ….
I think they want to stop free leeching of he NSFW wallies
I have also been having this issue with the NSFW images not downloading
Hi Nautikytin,
An updates coming soon… just keep your eyes open ..
Okay, will do
get this error [with the latest script]:
user420@user420-PC ~
$ ls
New folder wallbase.sh wallpapers_folder
user420@user420-PC ~
$ chmod a+x wallbase.sh
user420@user420-PC ~
$ ./wallbase.sh nature
./wallbase.sh: line 1: syntax error near unexpected token `newline’
./wallbase.sh: line 1: `?#!/bin/bash’
user420@user420-PC ~
Did you follow Step 6 to the point ?
yup
i had easily run a downloaded script from another user without any problem
but now as the script get modified with login feature
that file go useless
i even convert the new script to unix format
can u upload a file .i will put my config details and will use it.
thanx
for cooperating
the script is amazing
and kudos[i dont know the meaning but this word is famous] to u
wow
for the downlod link
thanx
can u make a script for carwalls.com .it is an amazing reputed site for amazing car wallpapers
Hi freddy,
I don’t think that there would be another one for carwalls.com as of now.
ok
nvm this wallbase script is nonetheless useful
thanx
get ‘ no url found’ error
Hmm..the cat and mouse game continues ..
check your mails
but if this goes on like this, im not gonna be able to do updates as fast as now, i just dont have the time
its not a tom n jerry game. its just they are concentrating on improving their website like making nsfw just for registered users .after few days this humble-jumble will stop and we can have a stable script for some big time.
by the way , providing download link is very helpful .
got no errors now
can u implement a scheme which creates a list of downloaded wallpapers and dont download them in future .its helpful as script wouldnt download those pics again which i dont like and deleted.
i like the idea
Changed the old “check if file exists” feature with a download log file
im working on 2 additional features (see comment below) and when i finished all of that im sending the new script to the admin.
If he likes the ideas too you should see an update here preety soon
thumbs up .
how to download my ‘favorites’
i.e http://wallbase.cc/user/favorites
right now you cant.
Im working on it
also on a “download user collection” feature
cant download my favorites .
my config is :
# Define the maximum number of wallpapers that you would like to download MAX_RANGE=26460
MAX_RANGE=250
# For accepted values of resolution see Section 1
RESOLUTION=0
# For accepted values of aspect ratio see Section 2
ASPECTRATIO=0
# For accepted values of category see Section 3
CATEGORY=111
# For accepted values of topic see Section 4
TOPIC=123
# For accepted values for SIZE see Section 5
SIZE=gteq
# For accepted Thumbnails per page see Section 6
THPP=60
# For download location see Section 7
LOCATION=/home/discodancer/wallpapers_folder
# Best of : see Section 8
TIME=0
# For Types see Section 9
TYPE=1
# For order Options see Section 10
ORDER=relevance
# See Section 11
ORDER_TYPE=desc
# See Section 12
QUERY=”$1″
# See Section 13
COLLECTION=-1
see section 9 you need to set TYPE to 5 for your favorites and to 6 for user created collections
TYPE=1 means download random wallpaper
Thanks for pointing that out MacEarl.
I had completely skipped those two lines in the script.
Have updated the same
Hi dino,
I have uploaded the updated script .. should help you now
yup
its working now
but i’ve seen that if i didnt delete all the files in ‘wallpaper_folder’ other than ‘downloaded.txt’ and ‘wallpapers’ , i wouldnt get wallpapers properly .and after i delete all those files like cookies ,login etc , i get wallpapers proprly.
thanx
for the continuous support
also can u make something which didnt require me to fill ‘chmod a+x … ‘ etc everytime i download wallpapers. just a thot .the script is awesome nonetheless .but it would be more awesome if it can be.
Ok, will take a look into the script to see what the problem is.
As for the
chmod a+xpart, you need to do it only once. After that just execute the scriptI am having an issue. When I run the script it will only download 1 out of 100 files or so, successfully. It shows itself downloading a file and if I look in the destination folder I can see a temp file pop into the folder and then disappear as it works to load images.
Here is my wallbase. sh
http://dl.dropbox.com/u/3530788/wallbase.sh
Here is the log file I created.
http://dl.dropbox.com/u/3530788/wblog.txt
An update to my issue with files not saving. It seems the progress par in the running scrip will either start or partially move across to %100 but never finishes, then the file is deleted before the next loop runs. It almost seems like it is being interrupted by the speed at which it is running. This is a bit frustrating since I have had no success downloading more than a few wallpapers.
Hi SmashBrando,
Sorry I didn’t get time to look into the issue.
Will let you know once I am able to resolve it.
Any progress? I haven’t figured anything new out on my side.
I think I found my issue. THey started using a new image server. I added ns223506 to the egrep “wallbase2|imageshack.us”
“wallbase2|imageshack.us|”
Once I did that it started grabbing images. Let me know if you find any other issues as this would help everyone out a lot.
It happened to me either, I downloaded a collection but then when I tried to download another one I couldn’t do it, the last trhee lines says cannot delete 1 no such file or directory, cannot delete cookies.txt no such file or directory, cannot delete login no such file or directory.
That was the problem you had? how did you fixed it, thanks.
can there be any modification in script which can make tags like nsfw,sfw,sketchy etc add to the wallpaper name.this helps in categorisation.
theoretically yes.
But im not gonna do it (because i (and probably most user) dont need it)
you would need to check the wallpaper page for
“selected SFW”
“selected SKETCHY”
“selected NSFW”
then set a variable like
tag=sfw probably with an if condition
and then set a variable like filename=”$tag_wallpaper_$number.png” (of course you would need to check for the filetype and then insert it via another variable or something like that.
Hello, thanks a lot for your hard work, i’ve done the steps and downloaded the script in this page, but when I try to run ./wallbase.sh it keeps sending my a message
“Please check the needed options NSFW/New Content (username & password)
For further Information See Section 14
Press Any Key to enter”
Even when I have
“# See Section 14
# Enter your Username
USER=myname
# Enter your password
PASS=mypass”
What could be missing?
now I’m getting this http://img163.imageshack.us/img163/4219/wallbaseerror.jpg
what can I do?
Hi herudae,
Can you please check the section “Configuration Options” and set the “LOCATION” parameter correctly ?
Thanks a lot
“# For download location see Section 7
LOCATION=/home/Sol/wallpapers_folder”
Is anything wrong?
the complete path is in the disk C:\cygwin\home\Sol\wallpapers_folder
Crap! I hate when I can’t edit a message I meant Thanks for your reply, in the configuration I have the following
# For download location see Section 7
LOCATION=/home/Sol/wallpapers_folder
And i have the complete path in the PC
C:\cygwin\home\Sol\wallpapers_folder
More over the Cygwin itself made the “wallpapers_folder” the first time I ran the script, I’ve tried 3 different scripts, I’ve changed parameters but couldn’t make them work, always the same error I even created a cookies.txt manually to see if it could open it and read it, I try to download another script in the comments but is no longer available
I have Win7, I tried to open Cygwin as administrator but the same problem, I ran out of ideas
Sorry for double posting but the preceding post was writen in a rush and I couldn’t edit it.
Hi herudae,
I have tried the script in Cygwin again and it works fine for me.
Just re-download the script and then re-configure it .
Just make sure you don’t include any spaces in the configuration sections. Hope this helps
Thanks, I just found the problem, I reinstalled Cygwin, I think I had installed a wrong wget version, this version had 474kb aprox.
it’s not working anymore for nsfw stuff..
It’s working about 2 moths ago but now it doesn’t.
I checked the login file generated by the script and it says that my userpass contains symbol so it cannot login.
script aint working bro
@Everyone : The updated script has been posted but this time at github: sevensins / Wallbase-Downloader so as to get more people involved.
Please use the script from there and once again thanks a lot for bearing up with me
Hey, for some reason, I followed the tutorial but I always get some file errors.
Link to said error:
http://imageshack.us/photo/my-images/832/wallbase.png/
I tried download both sfw and nsfw and it didn’t change a thing. I do have an account for nsfw. Tried creating downloaded.txt and cookies.txt in the download folder but it then it says it already exists.
I downloaded the latest version of wget, is that the problem?
Hi Meatmick,
Can you re-download the file from github and try once more after providing all the necessary details ?
seems to be working fine since I re-downloaded the file. Thanks
I’ll update if I get more errors. Happy Holidays!
what does this mean?:
$ ./wallbase.sh
/usr/bin/wget.exe: error while loading shared libraries: cygssl-0.9.8.dll: cannot open shared object file: No such file or directory
cat: 60: No such file or directory
rm: cannot remove `60′: No such file or directory
/usr/bin/wget.exe: error while loading shared libraries: cygssl-0.9.8.dll: cannot open shared object file: No such file or directory
cat: 60: No such file or directory
rm: cannot remove `60′: No such file or directory
/usr/bin/wget.exe: error while loading shared libraries: cygssl-0.9.8.dll: cannot open shared object file: No such file or directory
cat: 60: No such file or directory
rm: cannot remove `60′: No such file or directory
/usr/bin/wget.exe: error while loading shared libraries: cygssl-0.9.8.dll: cannot open shared object file: No such file or directory
cat: 60: No such file or directory
rm: cannot remove `60′: No such file or directory
rm: cannot remove `1′: No such file or directory
rm: cannot remove `cookies.txt’: No such file or directory
rm: cannot remove `login’: No such file or directory
Seems like you would need to download the cygssl using Cygwin.
Search for the SSL library using cygwin and then install it.
Should solve the problem
can’t seem to download my favorites ,plz update .:)
Thanks for the heads up.
Will see what can be done…
bro ! plz do something
plzzzzzzzzzzzz
thanx macearl for updates and making the script work again .