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.3.0a1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 72bb92cac05e36f555a01029a10a83ded94801d2740ab36c3f729568177bbc6b |
|
MD5 | 756632198c8b70e03ae3828c60adc2fa |
|
BLAKE2b-256 | 044a7960d7cead28a52cfbb2e447427cf759d20d854a0f2ec151da78afbb6f05 |
Hashes for lemmy_post_automation-1.3.0a1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 726d3ca5e4accfa27c38d9365d17dad0de76880c3a122c8b1d245b9f21c7e9c5 |
|
MD5 | 6bac838a15946489099ade34fc16fc24 |
|
BLAKE2b-256 | cd2274d5d4e78e59dbc57ce671fe75634eeae90bc90b4e2abb58ef2393c8c977 |