Skip to content

Latest commit

 

History

History
37 lines (31 loc) · 901 Bytes

README.md

File metadata and controls

37 lines (31 loc) · 901 Bytes

Wallpaper Downloader

wallpaper-downloader is a simple Python module to easily download wallpaper images from websites that we supported.

Installation

pip install wallpaper-downloader

Supported Websites

  • wallpaperflare.com
  • pexels.com
  • pixabay.com
  • unsplash.com
  • wallpapercave.com
  • wallpapersok.com

Usage

from walldown import WallpaperFlare, download_url


wf = WallpaperFlare("Space")
for img in wf.search(2):
    print("name: ", img.name)
    print("size: ", img.size)
    print("width: ", img.width)
    print("height: ", img.height)
    print("url: ", img.url)
    print("preview: ", img.preview)
    print("keywords: ", list(img.keywords))
    print("description: ", img.description)
    print("px_resolution: ", img.px_resolution)
    print("=" * 30)

    # To download image uncomment this line
    # download_url(img.url)