Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

lemmy_post_automation-1.5.0a24.tar.gz (7.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

lemmy_post_automation-1.5.0a24-py3-none-any.whl (9.4 kB view details)

Uploaded Python 3

File details

Details for the file lemmy_post_automation-1.5.0a24.tar.gz.

File metadata

File hashes

Hashes for lemmy_post_automation-1.5.0a24.tar.gz
Algorithm Hash digest
SHA256 468310d3434a19a7354c4684210a8ab73a36fe73a6532470bbb61d79b35b7bab
MD5 a9dd18ee7efce2f83702b69e329be083
BLAKE2b-256 be6a03cd0b4a67abc8277a710cb1a20eaf44daa5ad1651a4ec6de22de2d91019

See more details on using hashes here.

File details

Details for the file lemmy_post_automation-1.5.0a24-py3-none-any.whl.

File metadata

File hashes

Hashes for lemmy_post_automation-1.5.0a24-py3-none-any.whl
Algorithm Hash digest
SHA256 e1565d269a16cee4780e20096e13fad64d6077eda1dcde1af4166b33941c40ab
MD5 9c15a44e2b1af1e0a4e251c076ce4197
BLAKE2b-256 1af5d4e9ab2c3d97adc2723598e28d7072b6a95174d393bac3f86ad2c7e98050

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page