bing-wallpaper
bing-wallpaper copied to clipboard
More functional download.py file
Hello There,
Recently, while using your repository to get the wallpapers the download crashed for network reasons. Once I restarted it, I noticed that all of the files were being re downloaded, so I decided to take it upon myself to prevent that.
The file below has the following changes:
- 2 new imports, sys and os
- It asks the user for a path, if that path doesn't exist it will create a new path at the
download.pyfile location calledPictures. - Created a new function called
check_existing(). It scans the directory for all the file names and removes the ones already downloaded from the list, after that it prints the total images that would need to be downloaded, the images that are already there and the number of images left. - In the
download_image()function I added a line to change the save location to the desired path
The changes made are not very important but they are useful in case someone wants to update their old bing archive download.
Unfortunately, GitHub doesn't allow code files to be uploaded so I had to copy the code to a .txt file.