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.0a106.tar.gz (7.5 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.0a106-py3-none-any.whl (10.2 kB view details)

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for lemmy_post_automation-1.5.0a106.tar.gz
Algorithm Hash digest
SHA256 6e397b5104b6c73ab25cc0f989ebdd9850dc5a30926db26c77296b30fbcb0a48
MD5 0f3ddf14f39a2821e96063be841ecd50
BLAKE2b-256 d5ef31a88db9cf5fe08380edc1cc9ab695ed66fed7bdb39c7a0f04f1c3c3b999

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for lemmy_post_automation-1.5.0a106-py3-none-any.whl
Algorithm Hash digest
SHA256 50b645b7776c251a2180c2c8a4ea6dd05b69cdd10f9d388ec0b7a8cc3b4242cd
MD5 5cd1cd965148240cf03cd50c5e416cc4
BLAKE2b-256 c864e8f006b34ed031582d53d705858b694b7198c0b561d3b702178e3b310f60

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