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.1.12a1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 760bc508627a01d12d8069c11b1394bc62da535103a016c6e16e54a6fc86a23d |
|
MD5 | c7bf63c1be2d4b99f0726303ed4c0d9e |
|
BLAKE2b-256 | 0757c63f682a14dcc77992798d0150980c497ad124040aaaa8e04f8eaf0d7534 |
Hashes for lemmy_post_automation-1.1.12a1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5eb6461b5bad273e287bbcd2946ee34fa7a4b7c3fd965e2ca2c758eb988a17fc |
|
MD5 | 6480c5aef4ca578d65eb778acb4a4777 |
|
BLAKE2b-256 | 559135a66daa328b1c7865c717dc7622754e3b130cf2a7d9953e51da96a019bd |