https://github.com/flozone/script_wallhaven_collection_downloader
Download wallpaper collections from Wallhaven website
https://github.com/flozone/script_wallhaven_collection_downloader
python script
Last synced: about 1 year ago
JSON representation
Download wallpaper collections from Wallhaven website
- Host: GitHub
- URL: https://github.com/flozone/script_wallhaven_collection_downloader
- Owner: FloZone
- Created: 2020-01-05T12:16:21.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2020-01-05T13:52:32.000Z (over 6 years ago)
- Last Synced: 2025-03-31T02:35:25.926Z (about 1 year ago)
- Topics: python, script
- Language: Python
- Homepage:
- Size: 7.81 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Wallhaven collection downloader
========
A simple script for downloading Wallhaven collections.
## Requirements
- Python >3.6
- requests lib
## How to use
You first need to get your API key from Wallhaven website.
It is located on your account settings: [https://wallhaven.cc/settings/account](https://wallhaven.cc/settings/account).
You also need to get the ID of the collection you want to download and the username of the collection owner. You can get these info from the URL of a collection.\
For exemple: https://wallhaven.cc/user/flozone/favorites/123456 will give you **123456** and **flozone**.
Then, simply run the script with the data as args.
## Command-line help
```
usage: python wallhaven_collection_downloader.py [-h] -k API_KEY -i COLLECTION_ID -u USERNAME [-o OUT_DIR]
Download a wallhaven collection.
optional arguments:
-h, --help show this help message and exit
-k API_KEY, --api-key API_KEY
Your API key from your wallhaven account
-i COLLECTION_ID, --id COLLECTION_ID
The collection ID
-u USERNAME, --username USERNAME
Username of the collection owner
-o OUT_DIR, --output OUT_DIR
Output directory (default: pics)
```