hanime.tv extractor plugin for yt-dlp
Project description
This yt-dlp plugin adds support for the hanime.tv extractor.
History
This extractor was first founded by rxqv, as a separate tool. A prime feature of that tool was the ability to search and download all videos in a hentai series.
xsbee, who also made an issue on yt-dlp repo, took on the apparently stale rxqv repo, converting it into a yt-dlp extractor.
This repository takes the extractor code and makes it a plugin, which makes maintainence rather easier. And does a few more additions.
Installation
Requires yt-dlp 2023.07.06
or above.
You can install this package with pip:
python3 -m pip install -U https://github.com/cynthia2006/hanime-tv-plugin/archive/master.zip
See installing yt-dlp plugins for the other methods this plugin package can be installed.
Features
-
Video downloads upto 720p (1080p requires premium membership).
-
Playlist downloads (public & unlisted without cookies.txt). If you need to download private playlists, you have to extract cookies off hanime.tv while still being logged in. Use this extension and download the
cookies.txt
in the current working directory. -
Franchise downloads. To download all videos in a franchise
--extractor-args "hanimetv:franchise=1"
must be passed to yt-dlp commandline. A franchise is collection of OVAs (or simply, episodes) in a certain Hentai OVA series.
Examples
-
To download a single video
yt-dlp "https://hanime.tv/hentai/video/green-eyes-ane-kyun-yori-1"
-
To download a playlist
yt-dlp "https://hanime.tv/playlists/liked-videos-bsqnpuefi9la"
-
To download all the videos in a franchise
yt-dlp --extractor-args "hanimetv:franchise=1" "https://hanime.tv/hentai/video/resort-boin-uncensored-re-release-1"
Search
xsbee had also made a search script to search without the web interface. It is included in the plugin package, and can be invoked through htv-search
.
usage: htv-search [-h] [-q QUERY] [-b BRAND] [-t TAG] [-T TAG] [-o {title,views,likes,upload_date,release_date}] [-p PAGE]
[--ascending] [--broad-search] [--verbose]
options:
-h, --help show this help message and exit
-q QUERY, --query QUERY
text to search with
-b BRAND, --brand BRAND
search for videos produced by a company/brand
-t TAG, --tag TAG search for videos having a tag
-T TAG, --no-tag TAG search for videos not having a tag
-o {title,views,likes,upload_date,release_date}, --order {title,views,likes,upload_date,release_date}
property to sort results by
-p PAGE, --page PAGE page number to show
--ascending show results in ascending order
--broad-search use broad search for whitelist of tags
--verbose show details about a result
Total pages and result count will be displayed
A few usecases include the following.
-
Simple text query
$ htv-search "kanojo x kanojo x kanojo" Kanojo x Kanojo x Kanojo 3: https://hanime.tv/hentai/video/kanojo-x-kanojo-x-kanojo-3 Kanojo x Kanojo x Kanojo 2: https://hanime.tv/hentai/video/kanojo-x-kanojo-x-kanojo-2 Kanojo x Kanojo x Kanojo 1: https://hanime.tv/hentai/video/kanojo-x-kanojo-x-kanojo-1 --- Page 1 of 1, Results 3
-
With multiple tags
$ htv-search -t harem -t 'big boobs' -t x-ray -t uncensored -T 'ugly bastard' Shoujo-tachi no Sadism 2: https://hanime.tv/hentai/video/shoujo-tachi-no-sadism-2 Shoujo-tachi no Sadism 1: https://hanime.tv/hentai/video/shoujo-tachi-no-sadism Ikenai Koto The Animation 1: https://hanime.tv/hentai/video/ikenai-koto-the-animation-1 Yubisaki Annainin 2: https://hanime.tv/hentai/video/yubisaki-annainin-2 Yubisaki Annainin 1: https://hanime.tv/hentai/video/yubisaki-annainin-1 --- Page 1 of 1, Results 5
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file hanime_tv_plugin-2024.4.8.tar.gz
.
File metadata
- Download URL: hanime_tv_plugin-2024.4.8.tar.gz
- Upload date:
- Size: 5.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.3 CPython/3.12.6 Linux/6.6.54-1-lts
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e322e23a87e32781b40b7626c6c73dd2b7214ad6116e0f67355bb4e095c141a2 |
|
MD5 | 5ed14f839f5ada45f57cbdc272161566 |
|
BLAKE2b-256 | 198906d447bcdeb606b544f9021a6cb55b714bf2a55703d483cf4458acfc92cc |
File details
Details for the file hanime_tv_plugin-2024.4.8-py3-none-any.whl
.
File metadata
- Download URL: hanime_tv_plugin-2024.4.8-py3-none-any.whl
- Upload date:
- Size: 7.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.3 CPython/3.12.6 Linux/6.6.54-1-lts
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 52c9c2e293396326c9fc4609c60c973da9cd5609a2bd5ca40628d23f35d7cb5b |
|
MD5 | d49ba26266d5f3cb2945a7d2c85bf348 |
|
BLAKE2b-256 | 7c5688febb0140052cd3e104d3901e62a7805b563829011d42bb78c6393ef867 |