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-1.2.0a1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8a0994f3e85a61dcdab8f1bc22c14c025ddee2774f1acc903fc5bdf25a23381b |
|
MD5 | 897ddc5292878133c2a4a8bc606b4438 |
|
BLAKE2b-256 | 67ad221a432e6b92fc4210bea544108f47f9424b0cdc4ed9ef20e4886c19e0d6 |
Hashes for lemmy_post_automation-1.2.0a1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 55d3cfedf57d879a7ca9cef8304ce5a9de8d968545f3b3227ca479fa33ee14bb |
|
MD5 | 6fe2e5e76881ef24f698e08f99acd282 |
|
BLAKE2b-256 | cea2997342b4adefa8f019ce05221a87dceb64b344dbbe19bd02d8aa9bc178ba |