Skip to main content

Change your wallpaper every day

Project description

release

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

wallme <WEBSITE>

Contribute by adding a new website

  1. Fork

  2. Create a new branch and checkout

  3. Create a new file from template

import re

NAME = 'apod'
DESCRIPTION = 'Astronomy Picture of the Day'

def getWebPageUrl():
	return 'https://apod.nasa.gov/apod/astropix.html'

def getPictureUrl(webpage):
	pictureurl = re.search("""<IMG SRC="(.*?)"[^>]*?>""",webpage)

	if(pictureurl == None):
		raise Exception("No image found today. It could be a video.")

	return 'https://apod.nasa.gov/apod/' + pictureurl.group(1)
  1. Import your file in websites.py

  2. Develop the package

python3 setup.py develop --user
  1. Check if it works by calling
wallme <WEBSITE>
  1. 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.1.tar.gz (4.7 kB view hashes)

Uploaded Source

Built Distribution

wallme-1.1-py3-none-any.whl (9.2 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