Skip to content

Change your wallpaper with a random image from Unsplash

License

Notifications You must be signed in to change notification settings

AlessioScarfone/PySplash

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 

Repository files navigation

PySplash

Change your wallpaper with a random image from Unsplash

Use Unsplash Source: https://source.unsplash.com/

How to use:

Help:

> python pysplash.py -h

usage: pysplash.py [-h] [-c] [-d] [-t TAGS [TAGS ...]] [-e] [-v]

optional arguments:
  -h, --help            show this help message and exit
  -c, --configure       create configuration file
  -d, --daily           get daily image
  -t TAGS [TAGS ...], --tags TAGS [TAGS ...]
  -e, --end-check       delete image if you do not like
  -v, --version         show program's version number and exit

Configuration File:

  • -c option allow the user to create a configuration json where store informations about: folder where save the downloaded images and preferred size
>python pysplash.py -c
 >>> Folder used for save image:  C:\user\username\Pictures
 >>> Preferred Size for the image:
        width:  1920
        height:  1080
Configuration json created.

NOTA: config.json is created and searched in the same folder of the script

Basic usage:

>python pysplash.py

Daily Image:

  • -d download the daily image

NOTE: Daily image has priority over the tag list

Select image based on Keywords:

  • -t allow user to select some keyword for select image
>python pysplash.py -t water,shark
https://source.unsplash.com/1920x1080/?water,shark
Downloading....

Image that respect "water" and/or "shark" keywords Image that respect "water" and/or "shark" keyword

Automatically delete unwanted images:

  • If -e option is used, after the download, is requested if delete or not the image
>python pysplash.py -d -e
https://source.unsplash.com/1920x1080/daily
Downloading....
Do you like it? (y/n):  n
Deleted....

Releases

No releases published

Packages

No packages published

Languages