This project downloads a random high-quality image from Unsplash and sets it as your desktop wallpaper on Windows. It uses the requests
library to fetch the image and ctypes
to update the wallpaper, providing a simple way to refresh your desktop background.
- Python 3.x
- Requests (
pip install requests
)
- Run the script:
python Random_Wallpaper.py
- The script will download a random image and set it as your desktop wallpaper.
- This script is designed for Windows due to the use of
ctypes.windll
for wallpaper changes. - Requires an active internet connection to download the image.
- The downloaded image is saved as
random.jpg
in the current directory; it will overwrite any existing file with the same name. - If the script fails, check for administrator privileges or internet connectivity.