nhpdf 1.1__tar.gz → 1.2__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {nhpdf-1.1 → nhpdf-1.2}/PKG-INFO +6 -17
- {nhpdf-1.1 → nhpdf-1.2}/README.md +5 -16
- {nhpdf-1.1 → nhpdf-1.2}/pyproject.toml +1 -1
- {nhpdf-1.1 → nhpdf-1.2}/src/nhpdf/nhpdf.py +3 -2
- {nhpdf-1.1 → nhpdf-1.2}/.gitignore +0 -0
- {nhpdf-1.1 → nhpdf-1.2}/LICENSE +0 -0
- {nhpdf-1.1 → nhpdf-1.2}/src/nhpdf/__init__.py +0 -0
- {nhpdf-1.1 → nhpdf-1.2}/test.py +0 -0
{nhpdf-1.1 → nhpdf-1.2}/PKG-INFO
RENAMED
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.4
|
2
2
|
Name: nhpdf
|
3
|
-
Version: 1.
|
3
|
+
Version: 1.2
|
4
4
|
Summary: Download NHentai doujins as PDF
|
5
5
|
Project-URL: Homepage, https://github.com/Aze543/NhentaiDoujinToPDFMaker
|
6
6
|
Project-URL: Issues, https://github.com/Aze543/NhentaiDoujinToPDFMaker/issues
|
@@ -42,23 +42,12 @@ nhpdf 566212 563102 345987
|
|
42
42
|
|
43
43
|
### 🔧 How to Install (CLI Version)
|
44
44
|
|
45
|
-
You can install the CLI tool
|
46
|
-
|
47
|
-
#### Option 1: From PyPI
|
45
|
+
You can install the CLI tool directly from the PyPI as long as you have Python (Refer to the 2nd flavors first step to install it):
|
48
46
|
|
49
47
|
```bash
|
50
48
|
pip install nhpdf
|
51
49
|
```
|
52
50
|
|
53
|
-
#### Option 2: Locally (Development)
|
54
|
-
|
55
|
-
If you’ve cloned this repo:
|
56
|
-
|
57
|
-
```bash
|
58
|
-
cd NhentaiDoujinToPDFMaker
|
59
|
-
pip install .
|
60
|
-
```
|
61
|
-
|
62
51
|
Now you can run it with:
|
63
52
|
|
64
53
|
```bash
|
@@ -79,13 +68,13 @@ python3 main.py
|
|
79
68
|
|
80
69
|
---
|
81
70
|
|
82
|
-
### 📥 How to Set Up
|
71
|
+
### 📥 How to Set Up the Script
|
83
72
|
|
84
73
|
> These instructions focus on **macOS**, but should work on **Windows** too (with small changes).
|
85
74
|
|
86
75
|
#### 1. Install Python
|
87
76
|
|
88
|
-
|
77
|
+
Go to the [PythonWebsite](https://www.python.org/downloads/) to install Python for your OS.
|
89
78
|
|
90
79
|
Check if Python is installed:
|
91
80
|
|
@@ -94,7 +83,7 @@ Check if Python is installed:
|
|
94
83
|
python
|
95
84
|
```
|
96
85
|
|
97
|
-
- **macOS**:
|
86
|
+
- **macOS/Linux**:
|
98
87
|
```bash
|
99
88
|
python3
|
100
89
|
```
|
@@ -135,7 +124,7 @@ python main.py
|
|
135
124
|
python3 main.py
|
136
125
|
```
|
137
126
|
|
138
|
-
You should see:
|
127
|
+
You should see an ascii logo:
|
139
128
|
|
140
129
|
```
|
141
130
|
NHENTAI DOUJIN-TO-PDF MAKER
|
@@ -24,23 +24,12 @@ nhpdf 566212 563102 345987
|
|
24
24
|
|
25
25
|
### 🔧 How to Install (CLI Version)
|
26
26
|
|
27
|
-
You can install the CLI tool
|
28
|
-
|
29
|
-
#### Option 1: From PyPI
|
27
|
+
You can install the CLI tool directly from the PyPI as long as you have Python (Refer to the 2nd flavors first step to install it):
|
30
28
|
|
31
29
|
```bash
|
32
30
|
pip install nhpdf
|
33
31
|
```
|
34
32
|
|
35
|
-
#### Option 2: Locally (Development)
|
36
|
-
|
37
|
-
If you’ve cloned this repo:
|
38
|
-
|
39
|
-
```bash
|
40
|
-
cd NhentaiDoujinToPDFMaker
|
41
|
-
pip install .
|
42
|
-
```
|
43
|
-
|
44
33
|
Now you can run it with:
|
45
34
|
|
46
35
|
```bash
|
@@ -61,13 +50,13 @@ python3 main.py
|
|
61
50
|
|
62
51
|
---
|
63
52
|
|
64
|
-
### 📥 How to Set Up
|
53
|
+
### 📥 How to Set Up the Script
|
65
54
|
|
66
55
|
> These instructions focus on **macOS**, but should work on **Windows** too (with small changes).
|
67
56
|
|
68
57
|
#### 1. Install Python
|
69
58
|
|
70
|
-
|
59
|
+
Go to the [PythonWebsite](https://www.python.org/downloads/) to install Python for your OS.
|
71
60
|
|
72
61
|
Check if Python is installed:
|
73
62
|
|
@@ -76,7 +65,7 @@ Check if Python is installed:
|
|
76
65
|
python
|
77
66
|
```
|
78
67
|
|
79
|
-
- **macOS**:
|
68
|
+
- **macOS/Linux**:
|
80
69
|
```bash
|
81
70
|
python3
|
82
71
|
```
|
@@ -117,7 +106,7 @@ python main.py
|
|
117
106
|
python3 main.py
|
118
107
|
```
|
119
108
|
|
120
|
-
You should see:
|
109
|
+
You should see an ascii logo:
|
121
110
|
|
122
111
|
```
|
123
112
|
NHENTAI DOUJIN-TO-PDF MAKER
|
@@ -18,10 +18,12 @@ def loading_animation() -> NoReturn:
|
|
18
18
|
spinner = ['|', '/', '-', '\\']
|
19
19
|
while not la:
|
20
20
|
for frame in spinner:
|
21
|
-
sys.stdout.write(f'\rDownloading the pages ({trunc((page/pages)*100)}%/{100}%)...{frame}')
|
21
|
+
sys.stdout.write(f'\rDownloading the pages ({trunc(((page-1)/pages)*100)}%/{100}%)...{frame}')
|
22
22
|
sys.stdout.flush()
|
23
23
|
time.sleep(0.1)
|
24
24
|
if la:
|
25
|
+
sys.stdout.write(f'\rDownloading the pages (100%/100%)...{frame}')
|
26
|
+
sys.stdout.flush()
|
25
27
|
break
|
26
28
|
|
27
29
|
def download_image(raw_url: str) -> bytes:
|
@@ -34,7 +36,6 @@ def download_image(raw_url: str) -> bytes:
|
|
34
36
|
return response.content
|
35
37
|
return None
|
36
38
|
|
37
|
-
|
38
39
|
def compile_images(raw: list, name: str) -> NoReturn:
|
39
40
|
with ThreadPoolExecutor(max_workers=10) as executor:
|
40
41
|
raw_images = list(executor.map(download_image, raw))
|
File without changes
|
{nhpdf-1.1 → nhpdf-1.2}/LICENSE
RENAMED
File without changes
|
File without changes
|
{nhpdf-1.1 → nhpdf-1.2}/test.py
RENAMED
File without changes
|