

Civit AI Download Link Extractor
Extract download links of Civit AI models via various methods.
The CivitAI-DownloadLink-Extractor is a tool designed to extract download links for various CivitAI models, including LORAs, Lycoris/Locon, Embeddings/Textual Inversion, Checkpoints, Poses, VAEs, Aesthetic Gradients, Upscalers, and Wildcards. It offers three extraction methods: using info files, a Stable Diffusion directory, or CivitAI download history.
Requirements:
Python v3.4 or higher
Pip installer
Chrome v120.x (required for extracting links from CivitAI download history)
Installation and Setup:
Clone the repository.
Navigate to the cloned directory.
Create and activate a virtual environment.
Install the necessary packages using `pip install -r requirements.txt`.
Run the program using `python extract_links.py`.
Extraction Methods:
Using Info Files: Place `.info` files into the `CivitAI_Info_Files` directory.
Stable Diffusion Path: Edit `config.ini` to include absolute paths for the Stable Diffusion folder and optionally for the output directory.
CivitAI Download History: Requires Chrome v120.x or higher. The script automates the login and navigation to the download history in Chrome, then scrolls through the page to extract links. Users must avoid interacting with the keyboard or mouse during this process.
Output:
The extracted links are saved in CSV files with the following format:
Sr.no
Model ID
Model Name
Model URL
Additional Notes:
The tool integrates with CivitAIBatchModelDownloader for batch downloading models.
The repository includes several Python scripts and modules for handling different aspects of the extraction process.
Technical Scope:
The tool automates the extraction of model download links from CivitAI using Python scripts and requires specific dependencies and browser configurations to function correctly. It utilizes web scraping techniques, particularly with Chrome in debug mode, to navigate and extract data from user accounts securely. The process includes handling file paths and configurations through an `ini` file and organizing extracted data into structured CSV files for easy access and batch processing.