- Download character cards from Chub.ai by simply entering the card name.
- Option to bundle downloaded files as a folder or zip archive.
- Easily set and manage your Chub.ai Token for accessing restricted content.
- HTML reports generated for each card, including descriptions and additional card information.
- Automatically download related gallery images.
- GUI built with Tkinter and ttkbootstrap for a modern look.
- Python 3.x
- Install the following dependencies:
pip install requests Pillow markdown ttkbootstrap
git clone https://github.com/yourusername/chub-card-downloader.git
cd chub-card-downloader
You can run the downloader directly by executing the Python script:
python chub_card_downloader.py
- Card Name: Enter the name of the character card you wish to download.
- Bundle Option: Choose whether to download the files as a folder or as a zip archive.
- Output Directory: Select the location where the files will be saved.
- Set Chub.ai Token: (Optional) Add your Chub.ai Token for accessing restricted cards (NSFW/NSFL or private content).
- Log in to Chub.ai.
- Open the developer tools (usually by pressing
F12
). - Navigate to the
Application
tab. - Look under Local Storage for the
URQL_TOKEN
key. - Copy its value and paste it into the Chub.ai Token field in the app.
You can convert this Python script into a standalone executable using PyInstaller.
First, install PyInstaller:
pip install pyinstaller
Then, generate the executable with the following command:
pyinstaller --onefile --windowed chub_card_downloader.py
The .exe
file will be located in the dist/
folder.
The app automatically creates a config.ini
file in the same directory as the script. This file stores:
- The last used output directory.
- The bundle option (Folder or Zip).
- Your Chub.ai Token (if provided).
You can modify this file manually if necessary.
If you'd like to contribute, please fork the repository and make changes as you'd like. Pull requests are warmly welcome.
- Fork the repository.
- Create a new branch:
git checkout -b my-branch-name
. - Make your changes.
- Push to the branch:
git push origin my-branch-name
. - Submit a pull request.
This project is licensed under the MIT License - see the [LICENSE](https://github.com/Samueras/chub_downloader#) file for details.