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.16.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5d48e2957162ce3d9b3e7b0e580be965f9c3094fdbf4b877f961956a2fa35a34 |
|
MD5 | 133be1a43b5b31940f7d82984dd8a460 |
|
BLAKE2b-256 | 14f54ff04afd871baa9b6b176d7acb92a01a558a27f3a7b1a69d8a6f3faadd92 |
Hashes for lemmy_post_automation-0.16.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1ebcaf11b39c9cd61fd8dcefda490efb4b301cb0aacea140c4c264bbbdfb611a |
|
MD5 | 8be95d714b99befe1b06078316761785 |
|
BLAKE2b-256 | b6be8b6d121c318da011678bd046ca190ff08bb1fe26b4a30c9e9a879df4725b |