Skip to main content

📺 kisskh-dl


Simple downloader for https://kisskh.is/

👋 Welcome to the kisskh-downloader README! This package is a simple command-line tool for downloading shows from https://kisskh.is/. Here's everything you need to know to get started:

💻 Installation

To install kisskh-downloader, simply run the following command:

pip install -U kisskh-downloader

Playwright (optional)

The site now requires an authentication token (kkey) for stream and subtitle APIs. You have two options:

Option A: Set KISSKH_STREAM_KEY and KISSKH_SUB_KEY environment variables (see Authentication section).

Option B: Install Playwright to generate keys automatically:

playwright install chromium

📚 Usage

kisskh dl — Download episodes

kisskh dl --help
Usage: kisskh dl [OPTIONS] DRAMA_URL_OR_NAME

Options:
  -f, --first INTEGER             Starting episode number.
  -l, --last INTEGER              Ending episode number.
  -q, --quality [360p|480p|540p|720p|1080p]
                                  Quality of the video to be downloaded.
  -s, --sub-langs TEXT            Languages of the subtitles to download.
  -o, --output-dir TEXT           Output directory where downloaded files will
                                  be store.
  -ds, --decrypt-subtitle         Decrypt the downloaded subtitle
  -k, --key TEXT                  Subtitle decryption key (or set KISSKH_KEY
                                  env var).
  -iv, --initialization-vector TEXT
                                  Initialization vector for subtitle
                                  decryption (or set
                                  KISSKH_INITIALIZATION_VECTOR env var).
  --stream-key TEXT               Pre-generated kkey for stream endpoint (or
                                  set KISSKH_STREAM_KEY env var). Skips
                                  browser-based kkey generation.
  --sub-key TEXT                  Pre-generated kkey for subtitle endpoint (or
                                  set KISSKH_SUB_KEY env var). Skips browser-
                                  based kkey generation.
  --help                          Show this message and exit.

Download entire series

kisskh dl "https://kisskh.is/Drama/Island-Season-2?id=7000" -o .

Search and download

kisskh dl "Stranger Things" -o .

Download specific episodes with specific quality

❗ Note that if the selected quality is not available, it will try to get something lower than that quality. If that also is not available, it will try to get the best quality available.

Downloads episode 4 to 8 of Alchemy of Souls in 720p:

kisskh dl "https://kisskh.is/Drama/Alchemy-of-Souls?id=5043" -f 4 -l 8 -q 720p -o .

Downloads a single episode in 720p:

kisskh dl "https://kisskh.is/Drama/A-Business-Proposal?id=4608" -f 3 -l 3 -q 720p -o .

You can also download a single episode by providing the episode URL:

kisskh dl "https://kisskh.is/Drama/A-Business-Proposal/Episode-3?id=4608&ep=86439&page=0&pageSize=100" -o .

📖 Download subtitles only

To download subtitles without the video:

kisskh dl "https://kisskh.is/Drama/Island-Season-2?id=7000" -s en -so -o .

The -so / --subs-only flag skips video download and saves only subtitle files.

For more options, use the --help flag.


kisskh get-key — Generate authentication tokens

The site now requires a kkey authentication token. Use get-key to generate one from an episode URL:

kisskh get-key "https://kisskh.is/Drama/A-Business-Proposal/Episode-1?id=4608&ep=86192&page=0&pageSize=100"

This opens a headless browser to extract the keys, then prints them:

── kkey tokens generated successfully! ──

  Stream key:  <long_hex_string>
  Sub key:     <long_hex_string>

  To use these without a browser next time, set these env vars:

    set KISSKH_STREAM_KEY=<long_hex_string>
    set KISSKH_SUB_KEY=<long_hex_string>

  Then run your download command as usual:
    kisskh dl "https://kisskh.is/Drama/.../Episode-1?id=1234&ep=5678&page=0&pageSize=100" -o .

📖 Decrypting Subtitles

If you want to decrypt the downloaded subtitles, you need to pass the --decrypt-subtitle or -ds flag along with a decryption key and initialization vector. Check #14.

Here is an example of how to pass these parameters from the command line:

kisskh dl "<drama_url>" --decrypt-subtitle --key "your_key_here" --initialization-vector "your_iv_here"

You can also set these parameters as environment variables. If you set the KISSKH_KEY and KISSKH_INITIALIZATION_VECTOR environment variables, they will be used by default.

Here is an example of how to set these environment variables:

  • On Linux/Mac:
export KISSKH_KEY="your_key_here"
export KISSKH_INITIALIZATION_VECTOR="your_iv_here"
  • On Windows:
set KISSKH_KEY="your_key_here"
set KISSKH_INITIALIZATION_VECTOR="your_iv_here"

After setting these environment variables, you can use the --decrypt-subtitle flag without passing the key and initialization vector explicitly:

kisskh dl "Drama Name" --decrypt-subtitle

🔐 Authentication

The site now requires a kkey authentication token for stream and subtitle API calls. You have several options:

Method How it works
Playwright (automatic) Installs Chromium and generates keys on-the-fly per episode. Requires: playwright install chromium
Environment variables Set KISSKH_STREAM_KEY and KISSKH_SUB_KEY to skip browser entirely. Generate them once with kisskh get-key.

All supported environment variables

Variable Description Default
KISSKH_BASE_URL Site base URL https://kisskh.is
KISSKH_STREAM_KEY Pre-generated kkey for stream endpoint —
KISSKH_SUB_KEY Pre-generated kkey for subtitle endpoint —
KISSKH_KEY Subtitle decryption key —
KISSKH_INITIALIZATION_VECTOR Subtitle decryption IV —

🐞 DEBUG

To enable debugging, use the -vv flag while running kisskh dl.

kisskh -vv dl "https://kisskh.is/Drama/A-Business-Proposal?id=4608" -f 3 -l 3 -q 720p

Metadata

Release files for kisskh-downloader 0.2.4

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for kisskh-downloader 0.2.4
File Size Uploaded
kisskh_downloader-0.2.4.tar.gz 12.8 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for kisskh-downloader 0.2.4
File Interpreter ABI Platform
kisskh_downloader-0.2.4-py3-none-any.whl Python 3 none any Details

Total release size: 31.1 kB

Release files / kisskh_downloader-0.2.4.tar.gz

Download URL kisskh_downloader-0.2.4.tar.gz
Size 12.8 kB
Tags Source
SHA-256 checksum
How to use checksums
19540e5390490aaa5aa40ef3187bd93bcded37ef922b73ee8b887550c4d0270f
BLAKE2b-256 checksum
How to use checksums
7acf60914abc55c1664142a0584719758a77dd487da547044db3c57fcd358899
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.12.9 {"installer":{"name":"uv","version":"0.12.9","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / kisskh_downloader-0.2.4-py3-none-any.whl

Download URL kisskh_downloader-0.2.4-py3-none-any.whl
Size 18.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
0c825c6fca28bd74d96d0895e3f703615db62dc11e508493cb3065a42a0efc06
BLAKE2b-256 checksum
How to use checksums
815cde8c53766433697721a0d265165f5b2c7c7d1a801a82c153ba90e6eb7ab1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.12.9 {"installer":{"name":"uv","version":"0.12.9","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release history Release notifications | RSS feed

This release

0.2.4 This release

2 release files

0.2.3

2 release files

0.2.2

2 release files

0.2.1

2 release files

0.2.0

2 release files

0.1.7

2 release files

0.1.6

2 release files

0.1.5

2 release files

0.1.4

2 release files

0.1.2

2 release files

0.1.1

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page