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 plemmy 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-0.1.0a36.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4750337a967e0c0d12f0e276c47680525e35ac2693df476f90a65bac0d97fa64 |
|
MD5 | c490f00ee4420997db1621e9eb44ae13 |
|
BLAKE2b-256 | b7b06f1de402ca66f2fdd0ebde85309922ff8fe77765e9c1018fd4714960cdee |
Hashes for lemmy_post_automation-0.1.0a36-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c34f377081252f2bc92cfe4ba0cda95531e2a05de64bf0fdc77d3873791b46f5 |
|
MD5 | 1b2c29ebb360a1b0815ab1787c363d5b |
|
BLAKE2b-256 | 63b78896c0f96b21febdb2ca27463be30e9c8e15b7992fd0d5a0ef6ecefd59bf |