A bot to automate regular image posts from a variety of sources.
Project description
Lemmy Post Automation
A bot to automate regular image posts from a variety of sources.
Running the Bot
In its default configuration, the bot is set up to accept links to image boards in a CSV list. It then processes the list on a schedule defined using cron syntax, checks the target community for duplicates, and then posts the image (reuploaded to a provided hosting site) with a title in the format of Title [Content Warning] (Artist). Below is an example configuration setup to post images from data/post_list.csv to transfem every day at 6am:
import os
from pythonlemmy import LemmyHttp
from postautomation import PostAutomation
if __name__ == "__main__":
lemmy = LemmyHttp("https://lemmy.blahaj.zone")
lemmy.login("username", "hunter2")
automation = PostAutomation.create(
lemmy,
"transfem",
"data/post_list.csv",
"0 6 * * *"
)
automation.run()
From this, custom upload targets can be provided, as well as custom scrapers.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for lemmy_post_automation-1.4.0a24.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | ae63ad43b1fda1ecb4a0e700e255a1864bb3338dd8bf267b8c4f5e487f3c92d1 |
|
MD5 | 4da0422da5931c6d0cbc12697d5a426b |
|
BLAKE2b-256 | 1d1c4eb980882d0ee4553a8e8704aafd278c6ab8b954811e7205241331a9e061 |
Hashes for lemmy_post_automation-1.4.0a24-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ac96fc030ccb22ae76b58b3a3aaf4323284a0b95d66ee48587817f8901b9a051 |
|
MD5 | 647a5f54cce8839ef344db4ae3ed2ee9 |
|
BLAKE2b-256 | e9e27c79c62831016528b7066a114357ec01155d77644a1a069bb212cc91f138 |