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.0a32.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1e0b59f5be5d2a370623815de9ab38e64f40c0744eda374d5c9d46242ed37f79 |
|
MD5 | b15ce75cc740a57bc86625243918a006 |
|
BLAKE2b-256 | 6d2cfb274e5abc7bb892012db997749c06b63011287daf1b56f117b2a58343af |
Hashes for lemmy_post_automation-1.4.0a32-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7ae9f7a041f01bc6209e881948cb4f3f458bbff44940ee9e594535ca03613175 |
|
MD5 | 9a9d5d5e0fe885b42a945cd548ef412b |
|
BLAKE2b-256 | e3d072a5350c180e9a4638a65ab6dbdf306d4a05f94c3cc8ea7a837d76f3f118 |