Skip to content

Moskas/whdl

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Wallhaven.cc downloader

Simple wallhaven.cc wallpaper downloader written in Rust.

Roadmap

  • Support for all queries from Wallhaven API
  • Support for multi page downloading and page choosing
  • Customizable downloads folder

Usage

The app has built-in help command:

Wallhaven.cc wallpaper downloader

Usage: whdl [OPTIONS] --query <QUERY>

Options:
  -q, --query <QUERY>              The query to search on wallhaven.cc
  -r, --ratios <RATIOS>            Set the image ratios
  -i, --iresolution <IRESOLUTION>  Set the exact image resolution
  -m, --mresolution <MRESOLUTION>  Set the minimal image resolution
  -p, --purity <PURITY>            Set the purity sfw/sketchy/nsfw
  -c, --category <CATEGORY>        Set the category general/anime/people
  -s, --sorting <SORTING>          Set the sorting of the results
  -a, --ai-filter <AI_FILTER>      Set the AI art filter [possible values: true, false]
  -o, --order <ORDER>              Set the sorting order [default: desc]
  -e, --exact-page <EXACT_PAGE>    Set the exact page to request and download
  -h, --help                       Print help
  -V, --version                    Print version

Example usage:

whdl -q "Cyberpunk 2077" -p 100 -m 1920x1080 -c 110 -r landscape

API Key

Additionally, you can supply an API key for Wallhaven. The application checks an environment variable named:

WALLHAVEN_API_KEY