JozefJarosciak / D2WordPress

Discord to WordPress image ingestion

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Discord Images to WordPress

Discord to WordPress image ingestion script. Released as an open-source under the permissive MIT License.

Description

A multithreaded Python script that takes Discord images (e.g. Midjourney or any channel) and sends the full high-resolution version of the image automatically to Amazon S3 storage (creates thumbnails as well) and also auto-uploads each image as a new post (along with all the details) into the WordPress website. This is where either you (as an author) or people (if you share it with the online community) can see the image collection process in real-time (as the archiving process takes place).

Please don't comment on the quality of the code :). I had no time to clean it yet.

Live Demo Website

For now, I've created the demo, to showcase how the script can be used to archive all images created by artificial intelligence in Midjourney Discord channels. The script is ingesting about 100 high-resolution images every 5 minutes with only 5 threads. But can be adjusted for thousands a minute, as the script is fully multithreaded and you can run it with as many threads as your machine allows you to use (# of threads is configurable through the script variable). Live demo currently hosted at: https://aiartgal.com

Process Explained

process diagram

About

Discord to WordPress image ingestion

License:MIT License


Languages

Language:Python 100.0%