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.5.0a2.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | b483e916c4becfb709d99f7a8db1c768837e3313c6217f540666c75a3cc9f75a |
|
MD5 | accd41cfa8a3b3d118dbbe70cfffac32 |
|
BLAKE2b-256 | c6be30c8957b4a5dcb894e143b15f8fec9708f60b7696f83ba1ffd6bcd9717b8 |
Hashes for lemmy_post_automation-1.5.0a2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 934134d65225934cfebc3a3e363cda56fbc054065441768d5d1ac210cebbb843 |
|
MD5 | f7e643bb72b6557390f997baade3db0e |
|
BLAKE2b-256 | c66cae3b0793e8192e092f594d5c34160e001f37703427098378d1d333bf8c45 |