A python script which can download bing's beautiful images and set the image to your computer wallpaper.
Project description
## bing-wallpaper
A python script which can download bing's beautiful images and set the image to your computer wallpaper. This script can also change wallpaper every once in a while. It is tested and works well on ubuntu.
### Installation
```bash
pip3 install BingWallpaper
```
### HOW TO USE
#### arguments
There are three arguments you can set:
```
usage: wallpaper [-h] [--interval [INTERVAL]] [--num [NUM]] [--path [PATH]]
[stop]
timely replacement wallpaper from bing.
positional arguments:
stop stop wallpaper
optional arguments:
-h, --help show this help message and exit
--interval [INTERVAL]
time interval for scripts to change wallpapers. By
seconds.
--num [NUM] number of images saved in local folder at most
--path [PATH] path to save images
```
* stop
stop wallpaper
* interval
Time interval for scripts to change wallpapers. The unit of this argument is second and default value is **3 seconds**.
* num
Number of images saved in local folder at most. Script will only keep **num** latest bing's images, and the expired will be deleted. Script will choose one image as wallpaper randomly. Default value is **7**.
* path
Path to save wallpaper. If the current user does not have permission to write to or create the path, you may need administrator privileges. Default value is **'/home/user/wallpapers'**.
#### example
```bash
wallpaper
```
This is the simplest command and three arguments are set to the default value. You can customize your commands like this:
```bash
wallpaper --interval 4 --num 5 --path /home/bing/test/
```
If you want to stop the script, you can run the following code.
```bash
wallpaper stop
```
A python script which can download bing's beautiful images and set the image to your computer wallpaper. This script can also change wallpaper every once in a while. It is tested and works well on ubuntu.
### Installation
```bash
pip3 install BingWallpaper
```
### HOW TO USE
#### arguments
There are three arguments you can set:
```
usage: wallpaper [-h] [--interval [INTERVAL]] [--num [NUM]] [--path [PATH]]
[stop]
timely replacement wallpaper from bing.
positional arguments:
stop stop wallpaper
optional arguments:
-h, --help show this help message and exit
--interval [INTERVAL]
time interval for scripts to change wallpapers. By
seconds.
--num [NUM] number of images saved in local folder at most
--path [PATH] path to save images
```
* stop
stop wallpaper
* interval
Time interval for scripts to change wallpapers. The unit of this argument is second and default value is **3 seconds**.
* num
Number of images saved in local folder at most. Script will only keep **num** latest bing's images, and the expired will be deleted. Script will choose one image as wallpaper randomly. Default value is **7**.
* path
Path to save wallpaper. If the current user does not have permission to write to or create the path, you may need administrator privileges. Default value is **'/home/user/wallpapers'**.
#### example
```bash
wallpaper
```
This is the simplest command and three arguments are set to the default value. You can customize your commands like this:
```bash
wallpaper --interval 4 --num 5 --path /home/bing/test/
```
If you want to stop the script, you can run the following code.
```bash
wallpaper stop
```
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
BingWallpaper-1.2.0.tar.gz
(4.1 kB
view hashes)
Built Distribution
Close
Hashes for BingWallpaper-1.2.0-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1a35e36d21dad25fa70d2d3bdf1278ed597b94fd6dd76b776627b0eeaa5e64da |
|
MD5 | 8b27f1add0eaf13d46c351b31d95fc9b |
|
BLAKE2b-256 | 635f868bd8652efcb64022d663f1da371f763b140ec72a277904e0f439194f57 |