Skip to content

Latest commit

Β 

History

2 Commits

Folders and files

NameName
Last commit message
Last commit date
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

cosplay

A gallery downloader for hentai-cosplay-xxx.com with both a web UI and CLI interface. Downloads full-size images from galleries, supports parallel/sequential downloads, search, and ZIP archiving.

Features

  • Web UI β€” browse, search, and download galleries from your browser
  • CLI mode β€” run as a local server with configurable host/port
  • Search β€” keyword search with pagination
  • Popular β€” load trending galleries from the homepage
  • Parallel/Sequential β€” download multiple galleries at once or one at a time
  • ZIP archives β€” optionally package downloaded galleries into .zip files
  • Auto-skip β€” 404 and "not found" pages are detected and skipped automatically
  • Resume β€” tracks previously downloaded URLs to avoid re-downloading

Requirements

Install dependencies:

pip install -r requirements.txt

Usage

python cosplay.py [--port PORT] [--host HOST]

Opens the web UI at http://127.0.0.1:5000 by default.

Options

Flag Default Description
--port 5000 Web UI port
--host 127.0.0.1 Web UI bind address

Project structure

cosplay/
β”œβ”€β”€ cosplay.py        # Main application (CLI + Web UI)
β”œβ”€β”€ downloads/        # Downloaded galleries (created on first run)
└── downloaded_urls.json  # Tracks completed downloads

Notes

  • TLS verification is disabled by default.
  • Up to 10 galleries can download in parallel (configurable via the semaphore in code).
  • Each gallery uses up to 10 worker threads for image downloads.
  • Gallery folders are numbered sequentially in the downloads/ directory.

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages