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.4.0a17.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8007cfadaf3335bc67b047577c344f02accecf2dc60ea229d21509467efb6542 |
|
MD5 | 50b051dff54924125c6a69614d1c625a |
|
BLAKE2b-256 | 090b14cfc41f000e27fce652af2a662b2cccf2bd7a6e51870c375d0e60b000f5 |
Hashes for lemmy_post_automation-1.4.0a17-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | df1f2ee6420203baa884eb308fa744a3cce82bc4ac5fbb6c8c9310946f07d6a5 |
|
MD5 | 0b837ff3d5ae3c0806ebf3db6d2c5f45 |
|
BLAKE2b-256 | f67abd0ac30ec48ccc5a32347a038de381b0cb944510f2936502acf88fa185c7 |