Skip to main content

Change your wallpaper every day

Project description

release Test Deploy codecov

wallme

Description

wallme is a python tool that change your wallpaper every day based on websites.

Prerequisites

Pip installation :

python3 get-pip.py

Install

From PyPi :

pip install wallme

Update

pip install wallme -U

Uninstall

pip uninstall wallme

Usage

List all the available websites :

wallme -list

Open the webpage on which the image is taken from :

wallme -info <website>

Retrieve the image url from the website :

wallme -url <website>

Change the wallpaper :

wallme -set <website>

Change your wallpaper on startup :

wallme -set-startup <website>

Stop changing your wallpaper on startup :

wallme -unset-startup

Contribute by adding a new website

  1. Fork

  2. Create a new branch and checkout

  3. Create a new file from template

from wallme import utils

NAME = 'apod'
DESCRIPTION = 'Astronomy Picture of the Day'
URL = 'https://apod.nasa.gov/apod/astropix.html'

def pre_process():
	return None
    
def process(date):
	soup = utils.get_soup_from_url(URL)
	imgs = utils.find_tags_from_soup(soup, "img")
	return 'https://apod.nasa.gov/apod/' + imgs[0].get('src')
    
def post_process(image):
	return None
  1. Import your file in websites.py

  2. Check if it works by calling

python main.py <WEBSITE>
  1. Commit and pull request

Contact

Please contact @LucBerge for more informations.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

wallme-1.5.0.tar.gz (11.3 kB view hashes)

Uploaded Source

Built Distribution

wallme-1.5.0-py3-none-any.whl (19.8 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page