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.
Metadata
Release files for lemmy-post-automation 1.4.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| lemmy_post_automation-1.4.0.tar.gz | 6.9 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| lemmy_post_automation-1.4.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 16.2 kB
Release files / lemmy_post_automation-1.4.0.tar.gz
| Download URL | lemmy_post_automation-1.4.0.tar.gz |
|---|---|
| Size | 6.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
9d0e9d7a0a62e400beaf85654bfdb16fdf68d9a18225d65eed162a0c8772db67
|
|
BLAKE2b-256 checksum How to use checksums |
67885c2edd5d5389f5323888ca70d820868a5e844d6ed0f3d3b2ba2e6bfd6d74
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.12.5
|
Release files / lemmy_post_automation-1.4.0-py3-none-any.whl
| Download URL | lemmy_post_automation-1.4.0-py3-none-any.whl |
|---|---|
| Size | 9.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
ee1afd3f7b0ff9f048974ef8ad98f3e0ce050c66e87bf6a3085bee8e1af9d590
|
|
BLAKE2b-256 checksum How to use checksums |
c194693dbe6d71dd85bbd6b610cabf0d315275ee4332cf519988e7eba991466d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.12.5
|