Video Demo: Youtube
This Python script allows you to download wallpapers in bulk from wallhaven.cc using the API provided by Wallhaven. The program does not require an API key from wallhaven to download wallpapers, but it only allows you to download non-NSFW images. Users can choose from different categories and specify a specific page to download wallpapers from. Additionally, this program provides the user with the ability to change the specified output destination too.
Here are some of the categories you can choose from when using this script:
- General
- Anime
- People
- Fantasy
- Science Fiction
- Vehicles
- Video Games
- Animals
- Nature
- Architecture
Please note that this script only allows you to download non-NSFW images. If you want to download NSFW images, you will need to use the official Wallhaven API and obtain an API key.
- os
- random
- requests
- string
- You can also modify the program to filter wallpapers based on their resolution. To do this, you can edit Line 6 in
project.py
and specify the minimum resolution for the wallpapers you want to download.Furthermore, you can change the output directory for the downloaded wallpapers by editing Line 7 inproject.py
. This will allow you to save the wallpapers to a specific folder of your choice.