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.0a41.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 01973724dcdbcf69a5b6a4feb8abb07d55ea446a8c41df573e76639c0527fa3c |
|
MD5 | 7b2e89941156900c319c1225b79f9e06 |
|
BLAKE2b-256 | f4c9d9175b7b065269a5738fc0748f116f621cfcfb42f19e67ab63685d5ee904 |
Hashes for lemmy_post_automation-1.4.0a41-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b11331dae80c1518ddb64dddc13708cac3ed06bbb6eff60e47b9744780ca6d6d |
|
MD5 | 0439ff39b7d20d557d54d65eee7d3d5c |
|
BLAKE2b-256 | c4f71505c1f76157de6e3d06c10e3a77d6f6ab34fcfa3cff286158355e03f98d |