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
File details
Details for the file lemmy_post_automation-1.4.0.tar.gz
.
File metadata
- Download URL: lemmy_post_automation-1.4.0.tar.gz
- Upload date:
- Size: 6.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9d0e9d7a0a62e400beaf85654bfdb16fdf68d9a18225d65eed162a0c8772db67 |
|
MD5 | 8daaf04815d0f30e3eb769cc066ca705 |
|
BLAKE2b-256 | 67885c2edd5d5389f5323888ca70d820868a5e844d6ed0f3d3b2ba2e6bfd6d74 |
File details
Details for the file lemmy_post_automation-1.4.0-py3-none-any.whl
.
File metadata
- Download URL: lemmy_post_automation-1.4.0-py3-none-any.whl
- Upload date:
- Size: 9.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ee1afd3f7b0ff9f048974ef8ad98f3e0ce050c66e87bf6a3085bee8e1af9d590 |
|
MD5 | cabdab985b26730afe99538351b9ae50 |
|
BLAKE2b-256 | c194693dbe6d71dd85bbd6b610cabf0d315275ee4332cf519988e7eba991466d |