Archive utility for Midjourney
Project description
DimJournal
DimJournal is a Midjourney backup tool. It automatically downloads the metadata archive and the upscaled images from Midjourney into a local archive (folder tree). It also embeds some basic metadata (like the prompt) into the PNG files.
Note: the terms of use of Midjourney disallow any automation.
DimJournal is a Python tool uses the Selenium WebDriver to log into the Midjourney website, fetch user data, and download job information and images. The files are stored in the midjourney/dimjournal
subfolder inside your Pictures
/My Pictures
folder, or in a folder that specify.
Changelog
- v1.0.8: Fixes
- v1.0.3: Tested on macOS in July 2023
Installation
Stable version:
pip install dimjournal
Development version:
python3 -m pip install git+https://github.com/twardoch/dimjournal
Usage
Command Line Interface (CLI)
In Terminal, run:
dimjournal
or:
python3 -m dimjournal --archive_folder /path/to/your/archive/folder
This should open a browser where you need to log into MidJourney. Then the tool will operate the browser and download all metadata (up to 2,500 last upscale jobs, and up to 2,500 jobs). Then it will use the browser to download all upscales that are not in the backup folder. If you run the tool again, it will only download new metadata, and new images.
Python
You can also use Dimjournal in your Python scripts. Here is an example of how to import and use the download
function:
from dimjournal import download
# Specify the directory where you want to store the data
archive_folder = "/path/to/your/archive/folder"
# Download the data
download(archive_folder)
License
- Licensed under the Apache-2.0 License
- Written with assistance from ChatGPT
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
Built Distribution
Hashes for dimjournal-1.0.8-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | cd0f1037b4614409bb4e1a283b0b4a69b5fe55cc4577feee6e45e36c6b82f2ac |
|
MD5 | 3f1f48991e4b8cfd67adee1a1e11a90d |
|
BLAKE2b-256 | 19c0beab998b04a4bd427765730464832403f03e23d5e7efaf22fc1a43a4afcd |