This repository has been archived by the owner on May 16, 2023. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
17 changed files
with
209 additions
and
279 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
# These are supported funding model platforms | ||
|
||
custom: ["https://hensuki.surge.sh"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
--- | ||
name: Bug report | ||
about: Create a report to help us improve | ||
title: bug | ||
labels: '' | ||
assignees: '' | ||
|
||
--- | ||
|
||
**Describe the bug** | ||
A clear and concise description of what the bug is. | ||
|
||
**To Reproduce** | ||
Steps to reproduce the behavior: | ||
|
||
**Expected behavior** | ||
A clear and concise description of what you expected to happen. | ||
|
||
**Desktop (please complete the following information):** | ||
- OS: [e.g. iOS] | ||
- Node version [node -v] | ||
|
||
**Additional context** | ||
Add any other context about the problem here. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
--- | ||
name: Feature request | ||
about: Suggest an idea for this project | ||
title: '' | ||
labels: '' | ||
assignees: '' | ||
|
||
--- | ||
|
||
**Describe new features you want** | ||
A clear and concise description of what new features you want. | ||
|
||
**Describe the solution you'd like** | ||
A clear and concise description of what you want to happen. | ||
|
||
**Describe alternatives you've considered** | ||
A clear and concise description of any alternative solutions or features you've considered. | ||
|
||
**Additional context** | ||
Add any other context or screenshots about the feature request here. | ||
|
||
**A Gif to describe how you feel when you made this request** | ||
Add a gif here to express how you feel when you made this request. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
# Byte-compiled / optimized / DLL files | ||
__pycache__/ | ||
*.py[cod] | ||
*$py.class | ||
run.sh | ||
# C extensions | ||
*.so | ||
|
||
# Distribution / packaging | ||
.Python | ||
.idea | ||
build/ | ||
result/ | ||
playground/ | ||
out/ | ||
develop-eggs/ | ||
dist/ | ||
downloads/ | ||
eggs/ | ||
.eggs/ | ||
lib/ | ||
lib64/ | ||
parts/ | ||
sdist/ | ||
var/ | ||
wheels/ | ||
*.egg-info/ | ||
.installed.cfg | ||
*.egg | ||
MANIFEST |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
language: bash | ||
|
||
before_script: | ||
- curl -L "https://github.com/antiid/hensuki.git" | unzip | ||
- curl -L "https://github.com/sinkaroid/hensuki.git" | unzip | ||
|
||
script: | ||
- bash nanjo | ||
- wget -q -nv -O lacur.phtml https://nhentai.net/g/258362; cat lacur.phtml | grep img | grep -Po '<img src="\K.*?(?=")' | sed 's/\?.*//' | sed 's/t.nhentai/i.nhentai/' | sed 's/t.jpg/.jpg/' | sed 's/t.png/.png/' | sed 's/t.gif/.gif/' > a.txt; wget -q -nv -i a.txt; ls; cat lacur.phtml | grep -oP '(?<=<span class="pretty">)[^<]*' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,53 +1,55 @@ | ||
<div align="center"> | ||
<img width="270" src="https://i.imgur.com/yGdd3PO.png" alt="logo"></br><h2>Hensuki</h2> | ||
|
||
[![](https://img.shields.io/badge/hensuki-1.7-blueviolet)](https://github.com/sinkaroid/Hensuki/commits/master) [![](https://img.shields.io/badge/codename-nanjo%20-purple)](https://github.com/sinkaroid/hensuki/tree/master) [![!#/bin/bash](https://img.shields.io/badge/-%23!%2Fbin%2Fbash-1f425f.svg?style=plastic&logo=image%2Fpng%3Bbase64%2CiVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyZpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw%2FeHBhY2tldCBiZWdpbj0i77u%2FIiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8%2BIDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNi1jMTExIDc5LjE1ODMyNSwgMjAxNS8wOS8xMC0wMToxMDoyMCAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENDIDIwMTUgKFdpbmRvd3MpIiB4bXBNTTpJbnN0YW5jZUlEPSJ4bXAuaWlkOkE3MDg2QTAyQUZCMzExRTVBMkQxRDMzMkJDMUQ4RDk3IiB4bXBNTTp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M8nJzoFJNxP2HjyIQho4PewK6hBktoDcUwtIln4PjOWzflQ%2Be5yl0yCCYgYikTclGlxadio%2BBQCSiW1UXoVGrKYwH4RgMrjU1HAB4vR6LzWYfFUCKxfS8Ftk5qxHoCUQAUkRJaSEokkV6Y%2F%2BJUOC4hn6A39NVXVBYeNP8piH6HeA4fPbpdBQV5KOx0QaL1YppX3Jgk0TwH2Vg6S3u%2BdB91%2B%2FpuNYPYFl5uP5V7ZqvsrX7jxqMXR6ff3gCQSTzFI0a1TX3wIs8ul%2Bq4HuWAAiM39vhOuR1O1fQ2gT%2F26Z8Z5vrl2OHi9OXZn995nLV9aFfS6UC9JeJPfuK0NBohWpCHMSAAsFe74WWP%2BvT25wtP9Bpob6uGqqyDnOtaeumjRu%2ByFu36VntK%2FPA5umTJeUtPWZSU9BCgud661odVp3DZtkc7AnYR33RRC708PrVi1larW7XwZIjLnd7R6SgSqWSNjU1B3F72pz5TZbXmX5vV81Yb7Lg7XT%2FUXriu8XLVqw6c6XqWnBKiiYU%2BMt3wWF7u7i91XlSEITwSAZ%2FCzAAHsJVbwXYFFEAAAAASUVORK5CYII%3D)](https://www.gnu.org/software/bash/) [![Build Status](https://travis-ci.org/sinkaroid/Hensuki.svg?branch=master)](https://travis-ci.org/sinkaroid/Hensuki) [![CodeFactor](https://www.codefactor.io/repository/github/sinkaroid/Hensuki/badge)](https://www.codefactor.io/repository/github/sinkaroid/Hensuki) | ||
[![](https://img.shields.io/badge/hensuki-2.0-violet)](https://github.com/sinkaroid/Hensuki/commits/master) [![](https://img.shields.io/badge/codename-nanjo%20-purple)](https://github.com/sinkaroid/hensuki/tree/master) [![Build Status](https://travis-ci.org/sinkaroid/Hensuki.svg?branch=master)](https://travis-ci.org/sinkaroid/Hensuki) [![CodeFactor](https://www.codefactor.io/repository/github/sinkaroid/Hensuki/badge)](https://www.codefactor.io/repository/github/sinkaroid/Hensuki) | ||
|
||
---- | ||
</div> | ||
|
||
**Doujin Downloader** | ||
Steal your fav doujinshi from each vendor easily with bash | ||
Just put that nuclear code u will get it. | ||
Windows consider to put bash binary on your system. | ||
|
||
```json | ||
{ | ||
"vendor": [ | ||
"simply-hentai-network", | ||
"hentai2read", | ||
"nhentai", | ||
"nhensuki", | ||
"hentaicafe", | ||
"hentainexus", | ||
"pururin" | ||
] | ||
} | ||
``` | ||
|
||
## TODO | ||
---- | ||
$ git clone https://github.com/sinkaroid/hensuki.git | ||
$ cd hensuki;chmod -R 777 ./;./hensuki | ||
## Hensuki | ||
A Multivendor doujin grabber / downloader using Bash magic: | ||
0 API, 0 dependencies (formerly thru one-liner) supported several site. | ||
|
||
## Split return: | ||
```sh | ||
## split format is sucks? | ||
for img in *.png; do | ||
filename=${img%.*} | ||
convert "$filename.png" "$filename.jpg" && rm "$img"; | ||
done | ||
``` | ||
## Getting started | ||
[![](src/Screenshot_190.png)](https://github.com/sinkaroid/Hensuki/commits/master) | ||
Clone this repo and run `./hensuki` as usual | ||
|
||
## Response | ||
before init, should run [./nanjo](nanjo) == works as a request-response protocol between a client and vendor server. | ||
this case just check your request was blocked by your provider or not. | ||
## Docs | ||
Pls take a look and read it if it helps you [Wiki](https://github.com/sinkaroid/hensuki/wiki) | ||
|
||
response will return: | ||
## Supported site | ||
- nhentai.net | ||
- hentai2read.com | ||
- www.simply-hentai.com | ||
- pururin.io | ||
- hentai.cafe (deprecated [#is_hentai_cafe_down_or_shut_down](https://www.reddit.com/r/SauceSharingCommunity/comments/m16f08/is_hentai_cafe_down_or_shut_down/)) | ||
- hentainexus.com (deprecated [#hentainexus_is_permanently_shut_down_no_thanks_to](https://www.reddit.com/r/Piracy/comments/lv1mcs/hentainexus_is_permanently_shut_down_no_thanks_to/)) | ||
|
||
---- | ||
200 => https://nhentai.net | ||
200 => https://hentainexus.com | ||
## Todo | ||
- [X] nhentai | ||
- [X] hentai2read | ||
- [X] ~~hentaicafe~~ | ||
- [X] ~~hentainexus~~ | ||
- [X] nhensuki (for blocked country) | ||
- [X] pururin | ||
- [ ] hitomi | ||
- [ ] exhentai | ||
|
||
## Legal | ||
|
||
This tool can be freely copied, modified, altered, distributed without any attribution whatsoever. However, if you feel like this tool deserves an attribution, mention it. It won't hurt anybody :) | ||
|
||
Please, read the [license terms](/LICENSE). Don't worry, it can be read in less than 30 seconds, unless you have some sort of reading disability - in that case, I'm wondering why you're still reading this text. Really. Stop. Please. I mean, seriously. Why are you still reading? | ||
|
||
## Changelogs | ||
*@2.0 (current)* | ||
*codename "__nanjo__"* | ||
|
||
-- may-07-21 | ||
- **refactor(*)**: lots of changes | ||
- **ci**: pipeline enjoyer | ||
- **fix**: nhentai gif images blank result | ||
- no more hentainexus and hentai.cafe | ||
|
||
## EOF: | ||
- feel free to make PR, maybe this tools just using `sucks` pattern and `weird` implementation, if u have more good ideas than this one, just PR. | ||
- @sinkaroid are not the best coder, so there are sure some problematic Coding decision. I'm always happy to receive Pull requests to improve things. |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,41 +1,43 @@ | ||
#!/bin/bash | ||
#sin | ||
# fullpath pls eg: lewd_inuyamasenpai/1/ | ||
# for https://hentai2read.com/lewd_inuyamasenpai/1/ | ||
|
||
#just color, remove this if not necessary | ||
RED=$(tput setaf 1) | ||
GREEN=$(tput setaf 2) | ||
CYAN=$(tput setaf 6) | ||
WHITE=$(tput setaf 7) | ||
|
||
# awalan | ||
begin=$(date +"%s") | ||
echo -e "${RED} " | ||
echo " Sin . (Hensuki [bash hentai2read.com downloader])" | ||
echo "${WHITE}" | ||
echo "usage : ['series']/['chapter']" | ||
echo "ie: https://hentai2read.com/lewd_inuyamasenpai/1/" | ||
echo "just type: ${CYAN}lewd_inuyamasenpai/1/" | ||
#get | ||
|
||
# get | ||
echo "code:" | ||
read -r kode | ||
echo -e "reading /${GREEN}$kode .. | ||
${WHITE}" | ||
|
||
#fundamen | ||
# do | ||
json="cat meki.html" | ||
|
||
|
||
wget -O meki.html https://hentai2read.com/${kode}; | ||
|
||
#do | ||
mkdir -pv "${kode}" | ||
echo -e "still doing for /${GREEN}$kode ... | ||
mkdir -pv "../result/[hentai2read.com] - ${kode}" | ||
echo -e "Processing, pls wait /${GREEN}$kode .. | ||
${WHITE}" | ||
${json} | grep "'images'" | sed 's/","/\nstatic.hentaicdn.com\/hentai/g' | sed "s/\\\//g" | sed 's/"],//g' > ${kode}/asu.txt #dog | ||
cd ${kode}; | ||
wget -q -nv -i asu.txt # --user-agent="Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/51.0.2704.103 Safari/537.36" | ||
# option -i $argv if necessary show dat process | ||
|
||
# proses | ||
${json} | grep "'images'" | sed 's/","/\nstatic.hentaicdn.com\/hentai/g' | sed "s/\\\//g" | sed 's/"],//g' > "../result/[hentai2read.com] - ${kode}"/asu.txt #dog | ||
cd "../result/[hentai2read.com] - ${kode}"; | ||
wget -q -nv -i asu.txt # if rejected do : --user-agent="Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/51.0.2704.103 Safari/537.36" | ||
cd $OLDPWD | ||
rm meki.html; | ||
|
||
#length | ||
# akhiran | ||
termin=$(date +"%s") | ||
difftimelps=$(($termin-$begin)) | ||
echo "${WHITE}$(($difftimelps / 60)) minutes and $(($difftimelps % 60)) sec. elapsed ${RED}hentai2read stealer" |
Oops, something went wrong.