This release is 5 versions behind 2024.12.19 — the latest version of @leaf/e-hentai. Jump to latest
Built and signed on GitHub ActionsBuilt and signed on GitHub Actions
Built and signed on GitHub Actions
A tool to retrieve tags that are blocked by the e-hentai
This package works with Node.js, Deno, Bun


JSR Score
100%
Published
a year ago (2024.12.14)
一个用来检索被 e-hentai 官方屏蔽的 tag 的工具, 基于 puppeteer, 用 TypeScript 编写. 完整配置见 https://jsr.io/@leaf/e-hentai/doc.
A tool to retrieve tags that are blocked by the e-hentai, based on puppeteer, written in TypeScript. For full configuration, see https://jsr.io/@leaf/e-hentai/doc.
# 安装 # Install npx jsr add @leaf/e-hentai # if using npm bunx jsr add @leaf/e-hentai # if using bun deno add jsr:@leaf/e-hentai # if using deno pnpm dlx jsr add @leaf/e-hentai # if using pnpm yarn dlx jsr add @leaf/e-hentai # if using yarn
import { search } from '@leaf/e-hentai' import { resolve } from 'node:path' import { readFile } from 'node:fs/promises' // 普通用法 // Normal usage await search({ searchItems: 1, resultDist: resolve(import.meta.dirname!, 'result_1.json'), errorDist: resolve(import.meta.dirname!, 'error_1.json'), baseTags: ['other:full color', 'language:chinese'], }) // 用于搜索被屏蔽的标签 // Use for search banned tags await search({ searchItems: 2, resultDist: resolve(import.meta.dirname!, 'result_2.json'), errorDist: resolve(import.meta.dirname!, 'error_2.json'), baseTags: ['language:chinese'], extraTags: ['male:shotacon'], exisitingItems: JSON.parse(await readFile(resolve(import.meta.dirname!, 'result_1.json'), 'utf-8')), })
- 请在搜索完成后手动关闭页面 (不是浏览器) (控制台会有提示).
- Please manually close the page (not the browser) after the search is complete (you will get a notification in the console).
MacOS用户请提前安装Chrome浏览器,Windows请手动指定chromePath(可以用自带的Edge浏览器).MacOSusers please installChromebrowser in advance,Windowsusers please specifychromePathmanually (you can use the built-inEdgebrowser).
// 示例结果 // Example result [ { "title": "【佐藤ていぎ】異世界転生系即落ちシリーズ|【男男菊花香个人汉化】【chinese】", "url": "https://e-hentai.org/g/3157540/4738949e1a/", "tags": [ "language:chinese", "language:translated", "male:yaoi", "other:full color" ], "thumbnail": "https://ehgt.org/w/01/677/73319-m4uhaf21.webp" } ]
Built and signed on
GitHub Actions
Add Package
deno add jsr:@leaf/e-hentai
Import symbol
import * as e_hentai from "@leaf/e-hentai";
Import directly with a jsr specifier
import * as e_hentai from "jsr:@leaf/e-hentai";
Add Package
pnpm i jsr:@leaf/e-hentai
pnpm dlx jsr add @leaf/e-hentai
Import symbol
import * as e_hentai from "@leaf/e-hentai";
Add Package
yarn add jsr:@leaf/e-hentai
yarn dlx jsr add @leaf/e-hentai
Import symbol
import * as e_hentai from "@leaf/e-hentai";
Add Package
vlt install jsr:@leaf/e-hentai
Import symbol
import * as e_hentai from "@leaf/e-hentai";
Add Package
npx jsr add @leaf/e-hentai
Import symbol
import * as e_hentai from "@leaf/e-hentai";
Add Package
bunx jsr add @leaf/e-hentai
Import symbol
import * as e_hentai from "@leaf/e-hentai";