LorcanaCardCollector is a Python tool that helps you visualize your Disney Lorcana card collection. It fetches card data and images from the official Ravensburger Lorcana API and generates customized images showcasing your collection based on an export from dreamborn.ink.
- Fetches the latest card data and high-resolution images from the official Lorcana API.
- Processes your collection data exported from dreamborn.ink.
- Generates composite images of your collection, organized by card attributes such as color, rarity, and set.
- Highlights missing cards and indicates the quantity of each card you own.
- Supports multiple languages (English, German, French, Italian).
-
Clone the repository:
git clone https://github.com/entchen66/LorcanaCardCollector.git cd LorcanaCardCollector
-
Create a virtual environment (optional but recommended):
python3 -m venv venv source venv/bin/activate # On Windows use 'venv\Scripts\activate'
-
Install the required Python packages:
pip install -r requirements.txt
- Visit dreamborn.ink and log in to your account.
- Navigate to your collection and export it as a CSV file.
- Save the exported file as
export.csv
in the project root directory.
Execute the main script to start processing:
python main.py
What the script does:
- Fetches card data and images from the Lorcana API for each supported language.
- Downloads and saves high-resolution images of the cards to
cards/{language}/webp/{set_id}/
. - Reads your collection data from
export.csv
. - Generates composite images of your collection, highlighting collected and missing cards.
- Saves the final images in
cards/output/all_by_color/{language}/
.
You can adjust the script's behavior by modifying the following variables in main.py
:
LANGUAGES
: A list of language codes to fetch and process ("en"
,"de"
,"fr"
,"it"
).CHAPTERS
: A list of set identifiers to include.SCALING
: Adjusts the size of the output images.IMAGES_PER_ROW
: Number of card images per row in the composite image.DEBUG
: Set toTrue
to enable debug output.
Example:
LANGUAGES = ["en", "de"]
CHAPTERS = ["001", "002", "P1"]
SCALING = 0.8
IMAGES_PER_ROW = 6
DEBUG = False
Install dependencies using:
pip install -r requirements.txt
Contributions are welcome! Please follow these steps:
- Fork the repository.
- Create a new branch for your feature or bugfix.
- Commit your changes with clear messages.
- Submit a pull request describing your changes.
This project is licensed under the MIT License.
- dreamborn.ink for providing the platform to manage Lorcana collections.
- Ravensburger for the official Lorcana API.
Disclaimer: This project is not affiliated with Disney Lorcana or Ravensburger.