Social Wallpaper Downloader
You can grab the code from here , I should warn that its nothing amazing and just about anyone could have done it. If you want the long story read on.
One of my favorite programming languages has to be python , even with all its quirks and annoyances I still love using it when ever I can. Sadly though I don’t really get to use it much in windows since everything I can do in python I can do better and faster in C# .
But when it comes to linux mono does offer me the same advantages as .net in the windows environment and so i prefer to use python. After going through 3 server re-installs and loosing a good few scripts in the process i decided to do the safe thing and document some of my work (And put them in repos) and let the general public scrutinize my work as well. BTW thanks to Nighthawk for the post at the time on syncing files between my server reloads.
So at home I have a central server which is used to manage any downloads on the network and as a general file sharing location between the different PC’s in the house. To me this would be the ideal place to store all the wallpapers I need and then make them available to everyone on the network. Why would someone need to do this , besides the fact that I get bored pretty fast with my wallpapers I just wanted to do it because I can :P
Lastly Socwall has become a fav of mine because of the level of awesome wallpapers available on the site. It has a few simple but interesting concepts such as voting wallpapers up and down so that only the best are available when ordering wallpapers by up Votes.
So onto the actual execution , its all quite simple , follow the steps below and you will have a custom wallpaper downloader in no time .
- Grab their RSS Feed , just take care the most recent feed (hyperlinked) is not filtered i.e. NSFW at times
- Loop the feed and grab each of the image URLS
- Create the file on disk
- Write the data from the link to disk.
Running the code is pretty simple
- Grab the python script from the repo
- Use python to execute the script
- The app will start downloading the wallpapers into the current folder. It will also try to sort the files into the categories they were submitted to.
That’s all for now , any updates will be published to the repo.
Also please feel free to rant on my code as you wish.
~stalkerh







