wallbase – Download wallpapers the easy way

wallbase.cc is an excellent site to download wallpapers with an option to search through the wallpapers database which are tagged.
But with literally a huge database it takes ages to download the wallpapers to browse and download.
So if you are in a hurry just use the wallbase script to leech the wallpapers of the site and then sort them at your leisure.
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.
How to get the script up and running :
- Copy/Download the script code and make it executable
:~$ chmod a+x wallbase.sh
- Configure the script by changing the options in the section Configuration Options
-
Execute the script using
:~$ ./wallbase.sh
How to download NSFW content
- Register at wallbase.cc.
- In the section Needed for NSFW provide your usename and password.
How to use the search functionality of the script :
- Configure the script by changing TYPE=4 in the section Configuration Options
-
Execute the script using
:~$ ./wallbase.sh keyword
For instance to search for Batman wallpapers execute the script as
:~$ ./wallbase.sh Batman
-
For longer search queries you need to set the parameter QUERY manually.
-
For example to search for Legend of Zelda
set QUERY=”Legend of Zelda” in the section Configuration Options within the quotes -
To search for multiple keywords separate the words using the accepted operators AND and OR
The parameter QUERY will then look like QUERY=”keyword1 AND keyword2 OR keyword3″
-
For example to search for Legend of Zelda
How to download “Your Favourites” and “User Created Collections”
-
In the section Configuration Options set the value of COLLECTION to
- -1 to download your favourites in your “Home Collection”
-
Say you have a collection “My Anime” which has the following URL
http://wallbase.cc/user/favorites/12419
To download this collection set COLLECTION to 12419
-
Say you like the user collection “Ergo Proxy” which has the following URL
http://wallbase.cc/user/collection/12419
To download this collection set COLLECTION to 12419
How to download a specified range of wallpapers :
-
In the section Configuration Options set the value of
- WP_RANGE_START to a values greater than 0.
-
WP_RANGE_STOP to a value greater than WP_RANGE_START.
- Ensure that WP_RANGE_STOP to a value greater 0 to set it active.
- WP_RANGE_START = 10000
- WP_RANGE_STOP = 10200
To download the range of wallpapers from 10000 to 10200 set
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
UPDATE [13-August-2011]:
UPDATE [09-August-2011]:
Updates from Hab
- Updated mkdir option with -p flag
UPDATE [05-August-2011]:
Updates from MacEarl
- Added a Search Function
- Added a check for already existing Files
- Fixed a bug (imageshack mirrored files)
UPDATE [11-July-2011]:
Yesterday I received the updated script from MacEarl with the following modifications :
- Added the much needed fixes for NSFW category
- Updated the script with more options
-
Modified the script
- lynx is no more needed
- wget is still necessary
- sed is necessary which can be changed to awk or something similar
UPDATE [27-March-2011]:
The script has been updated to accommodate the wallbase URL change.
A few things to note would be :
- Wallbase has introduced a concept of accepting a popup for NSFW images.
- For the above reason setting CATEGORY to xx1 would not work (where x = 0 or 1)
- I am trying to find a work around for the same
- In case anyone has found the same please post it here or let me know and I will update the script
Hi !
Thank you for your script !
I worked fine until now, wallbase.cc have changed their website.
Can we have an update please ?
Hi Pavel,
Thanks for dropping by.
I have made the updates. Please use the new script.
Thanks a lot !
I’ve seen this method available here:
http://arzhurb.free.fr/blog/?p=78 (french) but it requires to download manualy the html page… Maybe a hint…
Thanks a lot for the link.
Let me see what I can do
There is also this method (but for 4chan picture downloading):
http://www.fansub-streaming.eu/blog/script-bash-recuperateur-dimages-plus-puissant.html (french always, french coders are very good ;D)
I think it can be changed for wallbase.cc
>Let me see what I can do
Take your time, pr0n is not the aim of your script I suppose
Cheers !
I am using a Python script I hacked together from a couple sources (n00b coder here), one of them being this script. Thanks!
As for the NSFW popup:
I am no coder, so I don’t know if you can changea javascript flag from a script, but the key is around line 1131 of the source code of wallbase.cc/toplist
$$.option.is_adult = 0; <—- clicking on the over 18 agreement switches this flag to '1', and allows nsfw content to be displayed.
Is there any way to pass that info to the page, do you think?
I have seen that line when the script first stopped working.
I will update the script as and when i am able to find a suitable solution and python being not one of them as of now
whoah this blog is magnificent i really like studying your posts. Stay up the good paintings! You know, a lot of individuals are looking round for this info, you can help them greatly.
would it be possible to make this into a .jar? maybe that would solve some problems to my (literally) untrained eye
I have got no idea as to how to make this into a .jar file.
Maybe you can shed some light on the same …
waaaay back in the day when i played runescape, there was a bot out called RSBuddy that would make a clicking action on the screen depending on what was on the screen. to my knowledge its still open source and this would be a great way to solve your NSFW popup problem. beyond that, i havent tried this script yet with just sfw and sketchy settings.
any update on this? i have no experience coding but if wallbase is mostly java, why can this be coded in java? would that solve any problems?
Wallbase is not in java. It is in PHP based on CodeIgniter framework
Thanks for this script! I’ve noticed that, when I ran the script with 16:9 and 1920×1080 set as the resolution and aspect, that it would download a seemingly random assortment of various resolutions, none of them matching the criteria.
This is the url it produces:
http://wallbase.cc/search/0/all/eqeq/1920×1080/1.77/100/40
Have you had the same issue, 7sins?
Think I found a way to work around it; if you remove the aspect ratio and just replace it with a 0, it’ll behave.
Hi Karan,
If it works for you great
I think I would have to redo the script to get this thing working properly again
my friends… I know this would be boring for you, but still, I’m so new here… I even dont know how to “copy” and “run” / “make executable” the script… isnt there a way to explain this issue like running script for dummies etc…
I believe one of you will help me… thanks…
>> You can instruct me using my e-mail address as well.
Hi makbari,
I think google is your friend
Dude, I really love you!
I was searching the web for so long and now I found this script
Works like a charme btw
Is there a way to contact you?
You can find the contact details at http://www.4geeksfromnet.com/about.html
Anybody find a way to get NSFW category working? I’m having no luck on my end
Hi,
i modded the script a long time ago a little bit (made it working, added some options) and now i just checked this post and saw that you updated it as well.
I dont have a solution for the nsfw problem but maybe my edited version is useful to someone.
I just took your version and added a Option for random Wallpapers and Top Rated Wallpapers. So that it is possible to download the newest, random and the Top Rated Wallpapers for different Time periods.
here is the code: http://pastebin.com/bxxmq4Pa
if you think its useful you can add it to your post.
ps. sorry for the bad english
Hi MacEarl,
with the NSFW problem resolved
Thanks for the updated script
Please let me know if you have any further modifications in mind lined up.
not everyone is a master in coding etc , so atleast u should have provided the downloadable script for those people otherwise this website is a useless thing for us
Hi daddy,
I think that the instructions are pretty self explanatory and you would just need to follow them blindly
Also when I have provided the script which needs to be copy pasted and provided explicit instructions as to how to execute it, why the hell would I need to make it downlodable ?
This is not any M$ executable file that you can download and go about with click > next > click and then execute it.
This is a shell script daddy.
First get some insight into what it is actually before you go about telling people about your abilities.
So daddy please do not to try to preach before you know what exactly you are trying to deal with.
also dont forget that we just gave ur site -ve rating on wot[web of trust]
Go ahead and spread -ve rating wherever you like to.
Jut keep in mind that if you can’t dance then don’t blame the dance floor.
sorry , abt my threatning of giving -ve rating to the site .i was just in anger .it happens .but i must tell u watever type of script it is , i still cant understand the instructions .i was thinking that u r rude bcoz u advice something to just google even he didnt get a clue to what exactly to google .would u plz give a clue , some webpage where we can see the proper steps.
sorry for my bad english.
whomever the script works for , it surely is awesome
wallbase rox
woooooooooooooooooooooooooooooooooooooooooooooooooow
Any way you can add the ability to keyword search?? single keyword would be fine just would like to grab what i’m looking for that day
James
y dont u add more details abt how to create and run the script
the present instructions are hard for noobs
Hi Aneroxia,
I will put up a detailed instructions for Windows users shortly.
Hope that would help
Hello sir!
I really like your script and I use it quite often. One thing I recognized however is that I often end up with duplicate wallpapers. You need to know that all my wallpapers downloaded via your script are in the same location. What happens now is, that I eg. have a file wallpaper-1014110.jpg and a file wallpaper-1014110.jpg.1 so the same pic was downloaded twice.
My question is if there is any way to impement a function which checks if a file already exists in the folder and only if it doesn’t it gets downloaded and if it exists the scripts just ignores it and continues with the next pic.
This function is not necessary of course but it would cause less traffic for me and the website and it would be easier for me because then I won’t have to delete the duplicates each time I use your script
regards, lumen
Hi Lumen,
I will try to implement the check in the script.
Do keep watching out for the change
Yeah, you rock! thank you very much for trying this.
I’ll keep watching closely, but take all the time you need
Hi! Big thanx for that script!
But altering it to download it to a random wallpaper downloader…
I came across some things:
wget –keep-session-cookies –load-cookies=cookies.txt –referer=wallbase.cc http://wallbase.cc/toplist/0/$TOPIC/$SIZE/$RESOLUTION/$ASPECTRATIO/$CATEGORY/$THPP/$TIME
In the “TYPE3 URL” the $THPP variable is not the last one so it does not download the correct html file
In every if body you do the same thing just with different URLs you could write a function there like
getWallpapers $URL
Don’t want to sound critical ;D your work is really epic
did not know that one can actually download and edit cookies with wget!
really awesome thanx again for that sweet script
Have a nice day!
Currently I’m using it like that in crontab
http://paste.ubuntu.com/657017/
So you have modified the script to download a single wallpaper and set is as your default desktop wallpaper ?
Nice work
Will put up another post with your modified script ..
Hi is just sent you an Email with an updated Script Version.
With that Version it is possible to do a keyword Search and it checks for already existing Files so it doesnt download everything twice or even more.
Hi MacEarl,
Just went through your mail.
Will pot the updates soon and thanks again for the modifications. ..
add more tips on how to install,run etc
i cant understand a thing
can u make it downloadable like exe etc
i dont know how to run this script or whatever
plz help
Hi manny,
I will put up a How-To for windows users shortly.
Do check that out then.
Please bear with me for the delay
“mkdir” should really be “mkdir -p” as the parent directories might not exist.
Anyway thanks for the script saves me the trouble of making it…
Hi Hab,
Thanks for the update.
Will make the necessary changes
I’m bookmarking this page
really looking into the tuts about how to get this thing started from scratch, since I’ve never done any php or web based scripting or coding, only microprocessors and c+
waiting for the tuts.
Hello.
I really can’t get it to work.
I hope you write a blog how to get this to work from scratch.
Hi Linus,
This is a bash script for Linux systems.
I will put up a detailed instructions for Windows users shortly.
Hope that would help
maybe most of you havent noticed by now but this is a bash script which works for linux, to get this to work in Windows you need cygwin, which tries to emulate the bash platform, but it isnt guaranteed that it will work with it.
If anyone knows how to do this part for batch (.bat files):
for (( count= 0; count< "$MAX_RANGE"; count=count+"$THPP" ));
i would probably make a .bat version which works in windows with a simple double click.
Did a quick google search
. This might help:
http://tom.paschenda.org/blog/?p=26
If you do get it working let me know. I’d love a Windows program to batch download images from wallbase.
Thanks for the link Rabbit …
In the meantime why don’t you try out the Cygwin way
thank you so much, 7sins and MacEarl for the updates!
I just tried the updated script, and it’s just awesome, everything is working as it should and as i wanted it to
thanks again you two, you’re really awesome!
Hi Lumen,
Glad that you found it useful
Some optimisations.
Block
rm $number
done
rm index.html
if [ $CATEGORY == 100 ] ; then
nsfw_sfw=1
nsfw_sketchy=0
nsfw_nsfw=0
...
...
...
fi
for (( count= $THPP; count< "$MAX_RANGE"; count=count+"$THPP" ));
can be replaced to
rm $number
done
rm index.html
(( nsfw_sfw=(10#$CATEGORY / 100) ))
(( nsfw_sketchy=(10#$CATEGORY % 100 / 10) ))
(( nsfw_sketchy=(10#$CATEGORY % 10) ))
for (( count= $THPP; count< "$MAX_RANGE"; count=count+"$THPP" ));
Hi Axa-Ru,
Thanks for the code update.
Some additional changes are coming up, so let’s see how this change can be incorporated
should be no problem
I like this because especially the replaced part was really quick and dirty
It would be cool if you could explain the part though (im always willing to improve my really poor bash skills
)
Ок.
Еxpression 10#$CATEGORY means that the number $CATEGORY of decimal.
(10#$CATEGORY / 100) – select first digit from $CATEGORY
(10#$CATEGORY % 100 / 10) – select second digit, and so on.
I have more optimisation, but but I can not send large text.
just send them via email to 7sins
email is there:
http://www.4geeksfromnet.com/about.html
checking of duplicate files is slow bcoz if i redownload from my favorites ,the script will take some minutes to check one-by-one and skipping the already downloaded wallpaper. can there be a way which make the script download/make/capture/devise the list of wallpapers which it gonna download[before download wallpapers] and then batch compare it with ‘downloaded.txt’ file. this may save some time.
srry , if i m too demanding
i just suggest watever ideas i get and this may helps others too offcourse.
this website can get more cool traffic if u add scripts for some other cool wallpaer websites too.
also u can remove the bulky script to show on website as u’ve already given the download link for the script .this makes the page looks catchy and easy for new users.
also it would be great offcourse if this project can take a shape of a cool wallbase downloading software. more users can add this way
Can you give me some statistics ??
suppose i m downloading from ‘my favorites’ for new wallpapers which i added to my favorites , then if i earlier had download from my favorites , the script take some time to check for already downloaded wallpapers one by one and skip them . can it be make some more fast like batch check.
Hey
Im getting alot of “This shouldnt be possible
” messages, any fix for that?
grats
Howdy! I believe I’ve done everything right but I get several errors such us
“line 248: syntax error near unexpected token ‘then’
“line 248:’ if [ $USER == yourusername ] ; then’
Any ideas?
Thanks!
Never mind! I fixed the error. However no matter what download path I use, I can’t find the downloaded files. It also spits out an error whilst downloading that cookies.txt doesn’t exist. Any ideass?
i am getting following error
$ ./wallbase.sh
./wallbase.sh: line 258: syntax error near unexpected token `newline'
./wallbase.sh: line 258: ` wget --keep-session-cookies --save-cookies=cookies
.txt --referer=http://wallba
se.cc/start/ --post-file=login http://wallbase.cc/user/login'
</code
delete the post before..
I am getting following error
$ ./wallbase.sh
./wallbase.sh: line 258: syntax error near unexpected token `newline'
./wallbase.sh: line 258: ` wget --keep-session-cookies --save-cookies=cookies
.txt --referer=http://wallba
se.cc/start/ --post-file=login http://wallbase.cc/user/login'
Do we should replace wallbase2 by ns223506.ovh.net (in France at least)?
Dear Readers,
The latest updated script has been posted.
Please use the latest script.
I had received the same from MacEarl on 9-September-2011 but was unable to update the same.
Sorry for the inconvenience.
Hello i’m in windows and I’m getting this errors,
http://img163.imageshack.us/img163/4219/wallbaseerror.jpg
what can I do?
u didn’t downloaded wget when u were installing cygwin.
Try to reinstall it and when u type wget, click also to the plus symbol next to wget and u’ll see that it is checked as the image posted in the guide. It worked fine for me.
Anyway I’ve got some problems downloading my favourite, everytime the script create some files name like “0″ or “number of image” and then start downloading casually images and not mine.
Is the script bugged?
Also the txt file it’s bugged cuase all numbers are grep one each one so u cant read those
Sorry for my bad english
first click on image to bigger view than right click on image there is something like SAVE IMAGE AS than save where you want
Hin i have the same problem as Herudae.
FOR the “command not found”, i just removed some spaces
but for ” token ‘$’\r i don’t know what to do !
edit : http://img11.hostingpics.net/pics/392037Capture.png
Hey there.
Nice script you’ve made there. It’s not really work though for me at least. All I get are those login.1 to login.n files when running the script with the intention to download my favourites. The login.1 file says:
A PHP Error was encountered
You have invalid symbols in your username or it’s too short/long (2-24 chars)…
I already tried to write the username and the password in quotes, without success.
Your help’d be nice!
I was able to fix it myself. The problem was that the json on the post actually changed. This are the changes that were made:
Instead of “username=” it is “usrname=” now
and the “&nopass=0″ parameter changed as well.
I added a function to download all the images that were uploaded by a certain user. Here the code:
USER=123456789
# USER = USER ID
# f.e.: http://wallbase.cc/user/profile/123456789/uploads
# 123456789 is the user’s ID
if [ $TYPE == 7 ] ; then
for (( count= 0; count/dev/null
then
echo “File already downloaded!”
else
echo $number >> downloaded.txt
wget –keep-session-cookies –load-cookies=cookies.txt –referer=wallbase.cc $img
cat $number | egrep -o “http:.*(gif|png|jpg)” | egrep “wallbase2|imageshack.us|ovh.net” | wget –keep-session-cookies –load-cookies=cookies.txt –referer=http://wallbase.cc/wallpaper/$number -i -
rm $number
fi
done
rm $count
done
else
You also have to add “fi” before this line: ‘rm “1″ “cookies.txt” “login”‘
Have fun!
I’m sorry, please replace the “wget …” line with the following:
wget –keep-session-cookies –load-cookies=cookies.txt –referer=wallbase.cc http://wallbase.cc/user/profile/$USER/uploads/favs/0/$count
script not working
plz repair
Update should be up soon (eventually new year or so, the admin is kind of busy, as am i
)
I sent the Admin a updated Version
Source is kind of rewritten (was done a while ago by an other user, sorry dont know the name yet)
An organizing Function is integrated (done by the same user)
Also implemented is the new Function by HansTester (changed it a bit) (downloads not all uploads just the number given in “Max_Range”)
(@HansTester I would like an explanation what the count/dev/null part does and how your count value is increased by 32 every time because if it isnt you should only be able to download the first 32 uploads. hope for an answer, would like to expand my bash knowledge)
If anyone has more function wishes, just post them and i take a look at it
thanx buddy
waiting for it
love the site
and u buddies r great great n spcl
@MacEarl : Thanks for the short update.
@Everyone : Sorry for the delay. But rest assured, the updated script would be posted as soon as I get some bit of more spare time.
Till then please bear with me
i’am waiting it bro
i enjoyed using this wallpaper stuff
@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
script aint working
my bad

i hadnt installed wget properly and after install , script running smooth
thanx
buddy
u got to update topic info in script as now it is:
wg – 1 , w – 2 , hr – 3
and in script
w – 1 , wg- 2 , hr -3
this may create errors in categorisation of wallpapers

thanx
Are you sure about that?
When i test the Topic Settings its still
1 for Anime/Manga
2 for Wallpaper/General
3 for High Resolution
in wallbase site: wg[wallpaper/general] : 1, w[anime/manga] : 2 , hr [high resolution]: 3
in our script : w[anime/manga] : 1 , wg[wallpaper/general] : 2 , h[high resolution]r : 3
Following some Links (all safe for work):
1 (Manga)
http://unrefer.com/?http://wallbase.cc/random/1/gteq/0/0/100/20
2 (Wallpaper General)
http://unrefer.com/?http://wallbase.cc/random/2/gteq/0×0/0/100/20
3 (High Res)
http://unrefer.com/?http://wallbase.cc/random/3/gteq/0×0/0/100/20
The Category is the number after random/ and the way i see it, its still the same as in the script.
Please provide example link, where i can see that 1 is now Wallpaper General and so on.
Hey there I have encountered a problem can some one help me out?
Okay So when i execute the script it say this.
$ ./wallbase.sh
./wallbase.sh: line 247: $’\r’: command not found
./wallbase.sh: line 248: $’\r’: command not found
./wallbase.sh: line 252: $’\r’: command not found
./wallbase.sh: line 258: $’\r’: command not found
./wallbase.sh: line 262: $’\r’: command not found
./wallbase.sh: line 263: $’\r’: command not found
./wallbase.sh: line 267: $’\r’: command not found
./wallbase.sh: line 298: $’\r’: command not found
./wallbase.sh: line 302: $’\r’: command not found
./wallbase.sh: line 323: syntax error near unexpected token `$’{\r”
‘/wallbase.sh: line 323: `function login {
So what did I do wrong?
You probably saved the Document wrong.
Here is an Answer from me from the Windows Version:
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
Hey,
Script works fantastic for me but if I want to get a users uploads it only downloads the first 2 – 3 wallpapers then continues to say “File already downloaded” Is this broken or something? I’ve checked all my settings and can’t see anything that could be causing it
Well it kinda worked now I just get this error:
. / wallbase.sh: line 356: wget: command not found
cat: 60: No such file or directory
rm: can not remove the ’60 ‘: No such file or directory
. / wallbase.sh: line 356: wget: command not found
cat: 60: No such file or directory
rm: can not remove the ’60 ‘: No such file or directory
. / wallbase.sh: line 356: wget: command not found
cat: 60: No such file or directory
rm: can not remove the ’60 ‘: No such file or directory
. / wallbase.sh: line 356: wget: command not found
cat: 60: No such file or directory
rm: can not remove the ’60 ‘: No such file or directory
rm: can not remove ’1 ‘: No such file or directory
rm: can not remove ‘cookies.txt’: No such file or directory
rm: can not remove the ‘login’: No such file or directory
You need libopenssl 0.9.8. Wget needs this library for functioning
http://pastebin.com/Uum8HnyD
Wallbase Batch Downloader (WBD) is a major update for
the old wallbase favorites downloader (http://wallbase.cc/forum/topic/1724)
and allows you to download your favorite- and user collections from wallbase.cc at once.
You can download user collections by simple pasting them from you clipboard!
Enjoy the new options!
IMPORTANT! You need Microsoft® .Net Framework 4.0
if you have the old walllbase favorites downloader then you will be informed about the update
http://www.codeteq.com/?page_id=444
regards codeteq
How do linux users use it ?
We need no Micro$oft dependency
Hello, thanks for the good method to download the great wallpapers.
Is there a way to download the specific wallpapers,
for example, from wallpaper-1779101 to wallpaper-1879101?
Thanks a lot.
Hi, there wasnt a way to do that, so i just implemented it in the Script,
I sent the updated Script to the Admin, he will probably update it in the next Days.
Hi MacEarl,
Thanks a ton for providing the needed feature
Umm Ideas?
./wallbase.sh: line 360: wget: command not found
./wallbase.sh: line 361: wget: command not found
rm: home: No such file or directory
./wallbase.sh: line 380: wget: command not found
cat: 60: No such file or directory
rm: 60: No such file or directory
./wallbase.sh: line 380: wget: command not found
cat: 60: No such file or directory
OK got wget installed now I have a new new issue:
wget: unrecognized option `–keep-session-cookies’
Usage: wget [OPTION]… [URL]…
Try `wget –help’ for more options.
wget: unrecognized option `–keep-session-cookies’
Usage: wget [OPTION]… [URL]…
Try `wget –help’ for more options.
rm: home: No such file or directory
wget: unrecognized option `–keep-session-cookies’
Usage: wget [OPTION]… [URL]…
check the lines with wget it should be “–keep-session-cookies” not “-keep-session-cookies”
Hello,
. I search for nature, and I get Manga.
I have the problem, that whatever category I use, I only get Manga (or is that Mango
What could that be?
could you post your settings section?
Just copy paste it to http://pastebin.com/ and then post the link here
Hi there,
Thank you for a fantastic script ! It works perfectly on my fav wallpaper site.
Had a look at the script and compared to my little knowledge of terminal you are godlike !
Quick questions:
1. Is it possible to make it add the wallpaper id to the download.txt after wget grabbed it ?
I tried to make it do so in the script but it does not seem to work as I expect.
2. Is it also possible to get to the related part of the pictures? Like if I search something and it finds eg: 23 items but two wallpapers have 60 related can I grab those too ?
Kind regards.
1. Yes it is possible to add the number after wget downloaded the wallpaper, but i dont see any benefit from it. Just place Line 418 after the cat $number… line
But like i said if it adds the number before the download or after doesnt really matter.
2. Do you mean this.
For example this is one of the Wallpaper while searching: http://unrefer.com/?http://wallbase.cc/wallpaper/3011
now this wallpaper has 10 related Wallpaper: http://unrefer.com/?http://wallbase.cc/related/3011
So now you want to download not only the first Wallpaper but also the 10 related ones. This would be possible, and im gonna add it (probably today) but i dont think that this is useful most of the times because the related Wallpaper dont really have anything to do with the search term.
Can i use this script in Greasemonkey addon of firefox?
Hi bobbyM,
Yes you can…just give the due credits.
Actually he cant, greasemonkey is an addon which manipulates html pages and the scripts for greasemonkey are written in java script.
Its definitely possible to write a greasemonkey script with (almost) the same features but that would be a lot of work and isnt really helpful because you still need to open your browser and browse to the site, do a search or go to the top list etc. If you do all that you can just download the wallpapers you like manually
# I have made this to meke easy configure script to your needs
# to get the script (chage option -O on wget to fit with your needs
wget -c https://raw.github.com/sevensins/Wallbase-Downloader/master/wallbase.sh -O ~/bin/wallbase.sh && chmod +x $_
# change user pass and type
sed -ri ‘s/(^USER=).*/\1″user”/g’ ~/bin/wallbase.sh
sed -ri ‘s/(^PASS=).*/\1″password”/g’ ~/bin/wallbase.sh
sed -ri ‘s/(^TYPE=).*/\15/g’ ~/bin/wallbase.sh
# now use the command wallbase.sh
hello,I can only download 60 PICs when i used type 4,why?
Just tested the Search function downloaded 240 Wallpapers.
could you post your lines with the THPP and Max_Range Values and also check some other search terms, maybe there are only 60 Wallpaper that got tagged
I downloaded and configured the script as required. It doesn’t work anymore.
I then tried to debug it and found that they insert a JS that only populates the real img url upon loading.
It looks something like that:
document.write(”);
Where src=”+B” calls a JS function.
So basically, the following command returns nothing (and nothing get downloaded):
cat $number | egrep -o “http:.*(gif|png|jpg)” | egrep “wallbase2|imageshack.us|ovh.net” | wget –keep-session-cookies –load-cookies=cookies.txt –referer=http://wallbase.cc/wallpaper/$number -i -
Hi there!
I ran your script under windows with cygwin for half a year now and it worked perfectly.
Now i switched to Linux (Proxmox Server) and i get the following “error” message:
No URLs found in -.
Cannot open cookies file “cookies.txt”: No such file or directory
–2012-10-17 21:24:49– http://wallbase.cc/wallpaper/2325802
Resolving wallbase.cc… 46.105.105.101
Connecting to wallbase.cc|46.105.105.101|:80… connected.
HTTP request sent, awaiting response… 200 OK
Length: unspecified [text/html]
Saving to: “2325802”
[ ] 17,879 57.6K/s in 0.3s
2012-10-17 21:24:50 (57.6 KB/s) – “2325802” saved [17879]
Any idea how to fix this??
Hi,
sry for the Delay.
But the Issue should have been fixed on the date of your Comment.
Wallbase implemented base64 encoded links so the script now uses the package base64 to decode those links.
If you encounter a problem again, please open an Issue on the github page, it makes it easier for me to notice if anything does not work