Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/nickve28/nich-image-scheduler
https://github.com/nickve28/nich-image-scheduler
Last synced: about 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/nickve28/nich-image-scheduler
- Owner: nickve28
- Created: 2024-06-23T07:12:49.000Z (7 months ago)
- Default Branch: master
- Last Pushed: 2024-09-14T14:00:11.000Z (4 months ago)
- Last Synced: 2024-09-15T11:30:31.677Z (4 months ago)
- Language: Python
- Size: 176 KB
- Stars: 0
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Nich Image Scheduler
![CI Status](https://github.com/nickve28/nich-image-scheduler/actions/workflows/python-tests.yml/badge.svg)
This tool allows for scheduling media posts to several platforms in an automated way, with configured presets. This can be combined with say, systemd or cron,
to post at intervals. Mainly intended to allow friends to post their arts without worrying about the actual scheduling process.Currently supports
- DeviantInstallation should be no more than `pip install -r requirements.txt` on the production machine, or `pip install -r requirements-dev.txt` when developing*
* PyQT does not work on linux that easily, so the image picker deps are separated to `dev`
## 1. set up an accounts.yml
See the provided accounts.example.yml for a baseline
### 2. run the starter script for image_selector.py, and add captions to the images
`python src/image_selector.py nick`
### 3. (deviant only), log in to deviant first time
`python src/authenticate_deviant.py nick`
Go to localhost:3000/login, and accept
The contents will be written to a non versioned folder using the id in the associated yaml accountNote: you need this redirect_url and the callback configured in deviant
### 4. Add jobs for scheduling
Eg
```bash
[Service]
ExecStart=/home/nick/nich-image-scheduler/src/schedule_image.py nick Twitter
```## Sub configs
The accounts.yml allows for a `sub_configs` section. Based on the provided `directory_path`, if the file matches the given path, the settings associated with said sub config will override the base config. This allows a user to categorize their pictures on a platform based on their folder name structure for example.