@hasindu---7/ff-link-extract 2.0.1 → 2.0.2
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.
- package/README.md +71 -176
- package/bin/ff_extract_links.js +1 -1
- package/bin/ff_extract_links_autorun.js +1 -1
- package/bin/ff_extract_links_init.js +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,252 +1,147 @@
|
|
|
1
1
|
# ff-link-extract
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
Extract direct download links from fuckingfast pages, store each run in a timestamped folder, and optionally auto-open links in the browser.
|
|
4
4
|
|
|
5
|
-
## Commands
|
|
5
|
+
## NPM Commands Reference
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
| Command | What It Does |
|
|
8
|
+
| --- | --- |
|
|
9
|
+
| `npm install` | Install project dependencies in this folder. |
|
|
10
|
+
| `npm audit` | Check dependencies for known security issues. |
|
|
11
|
+
| `npm outdated` | Show packages that can be updated. |
|
|
12
|
+
| `npm update` | Update dependencies within allowed version ranges. |
|
|
13
|
+
| `npm pkg get version` | Show current project version from package.json. |
|
|
14
|
+
| `npm view @hasindu---7/ff-link-extract version` | Check latest published version on npm. |
|
|
8
15
|
|
|
9
|
-
|
|
10
|
-
- `ff-link-extract-autorun`: Opens links from a text file in your browser at timed intervals using config settings.
|
|
11
|
-
- `ff-link-extract-init`: Creates starter files (`urls.txt` and `autorun.config.json`) in your current folder.
|
|
16
|
+
## Local Folder Workflow (Recommended)
|
|
12
17
|
|
|
13
|
-
|
|
18
|
+
This guide is local-first. No global install required.
|
|
14
19
|
|
|
15
|
-
|
|
16
|
-
# 1) Create starter files in current folder
|
|
17
|
-
ff-link-extract-init
|
|
18
|
-
|
|
19
|
-
# 2) Extract direct links
|
|
20
|
-
ff-link-extract -i urls.txt -o all-direct-links
|
|
21
|
-
|
|
22
|
-
# 3) Open extracted links at intervals
|
|
23
|
-
ff-link-extract-autorun -c autorun.config.json
|
|
24
|
-
```
|
|
25
|
-
|
|
26
|
-
This tool reads your source list, finds page URLs, fetches each page, and extracts the real link in this format:
|
|
27
|
-
|
|
28
|
-
https://fuckingfast.co/dl/...
|
|
29
|
-
|
|
30
|
-
## Who This Is For
|
|
31
|
-
|
|
32
|
-
- Anyone who has a list of fuckingfast page links.
|
|
33
|
-
- Users who want one-click output links.
|
|
34
|
-
- Users who want both machine-readable and human-readable results.
|
|
35
|
-
|
|
36
|
-
## Fastest Way To Use (Recommended)
|
|
37
|
-
|
|
38
|
-
Run without installing anything:
|
|
39
|
-
|
|
40
|
-
```bash
|
|
41
|
-
npx -y @hasindu---7/ff-link-extract -i urls.txt -o all-direct-links
|
|
42
|
-
```
|
|
43
|
-
|
|
44
|
-
Why recommended:
|
|
45
|
-
|
|
46
|
-
- Always uses the latest version.
|
|
47
|
-
- No global install issues.
|
|
48
|
-
- Works great across Windows, macOS, and Linux.
|
|
49
|
-
|
|
50
|
-
## Global Install (Optional)
|
|
20
|
+
### 1) Open project folder
|
|
51
21
|
|
|
52
22
|
```bash
|
|
53
|
-
|
|
23
|
+
cd "c:\Users\Owner\Documents\Hasindu\Fitgirl scr"
|
|
54
24
|
```
|
|
55
25
|
|
|
56
|
-
|
|
26
|
+
### 2) Install dependencies in this folder
|
|
57
27
|
|
|
58
28
|
```bash
|
|
59
|
-
|
|
29
|
+
npm install
|
|
60
30
|
```
|
|
61
31
|
|
|
62
|
-
Create starter files in
|
|
32
|
+
### 3) Create starter files in this folder
|
|
63
33
|
|
|
64
34
|
```bash
|
|
65
|
-
|
|
35
|
+
node bin/ff_extract_links_init.js
|
|
66
36
|
```
|
|
67
37
|
|
|
68
38
|
This creates:
|
|
69
39
|
|
|
70
|
-
- urls.txt
|
|
71
|
-
- autorun.config.json
|
|
72
|
-
|
|
73
|
-
So users do not need to look inside node_modules for templates.
|
|
74
|
-
|
|
75
|
-
## Input File Formats
|
|
76
|
-
|
|
77
|
-
The input file can be in any of these formats:
|
|
78
|
-
|
|
79
|
-
- One URL per line.
|
|
80
|
-
- Raw HTML blocks (including anchor tags).
|
|
81
|
-
- Mixed text that contains fuckingfast links.
|
|
82
|
-
- A PrivateBin paste URL (for example from paste.fitgirl-repacks.site with a key in the URL hash).
|
|
83
|
-
|
|
84
|
-
Example file names:
|
|
85
|
-
|
|
86
|
-
- urls.txt
|
|
87
|
-
- links.txt
|
|
88
|
-
- pasted-html.txt
|
|
89
|
-
|
|
90
|
-
## Output Files
|
|
91
|
-
|
|
92
|
-
With this command:
|
|
93
|
-
|
|
94
|
-
```bash
|
|
95
|
-
ff-link-extract -i urls.txt -o all-direct-links
|
|
96
|
-
```
|
|
97
|
-
|
|
98
|
-
You get:
|
|
99
|
-
|
|
100
|
-
- links/YYYY-MM-DD_HH-mm-ss/all-direct-links.txt: Direct links only, one per line.
|
|
101
|
-
- links/YYYY-MM-DD_HH-mm-ss/all-direct-links.html: Clickable links page for browser use.
|
|
102
|
-
- links/YYYY-MM-DD_HH-mm-ss/all-direct-links.json: Full success and error report.
|
|
40
|
+
- `urls.txt`
|
|
41
|
+
- `autorun.config.json`
|
|
103
42
|
|
|
104
|
-
|
|
43
|
+
### 4) Put links into urls.txt
|
|
105
44
|
|
|
106
|
-
|
|
45
|
+
Supported input:
|
|
107
46
|
|
|
108
|
-
|
|
47
|
+
- One URL per line
|
|
48
|
+
- Raw HTML anchor blocks
|
|
49
|
+
- Mixed text containing links
|
|
50
|
+
- PrivateBin paste URL with hash key
|
|
109
51
|
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
It opens links from a text file in your default browser one by one using timed intervals.
|
|
113
|
-
|
|
114
|
-
If the input file is not found in the current folder, autorun automatically tries the latest folder inside links.
|
|
115
|
-
|
|
116
|
-
Default config file shipped with package:
|
|
117
|
-
|
|
118
|
-
- autorun.config.json
|
|
119
|
-
|
|
120
|
-
Default config values:
|
|
121
|
-
|
|
122
|
-
- inputFile: all-direct-links.txt
|
|
123
|
-
- intervalMs: 20000
|
|
124
|
-
- startDelayMs: 3000
|
|
125
|
-
- maxLinks: 999999
|
|
126
|
-
- dryRun: false
|
|
127
|
-
|
|
128
|
-
Example:
|
|
52
|
+
### 5) Extract direct links
|
|
129
53
|
|
|
130
54
|
```bash
|
|
131
|
-
|
|
132
|
-
```
|
|
133
|
-
|
|
134
|
-
If you do not have config yet:
|
|
135
|
-
|
|
136
|
-
```bash
|
|
137
|
-
ff-link-extract-init
|
|
138
|
-
ff-link-extract-autorun -c autorun.config.json
|
|
55
|
+
node bin/ff_extract_links.js -i urls.txt -o all-direct-links
|
|
139
56
|
```
|
|
140
57
|
|
|
141
|
-
|
|
58
|
+
### 6) Run autorun (optional)
|
|
142
59
|
|
|
143
60
|
```bash
|
|
144
|
-
|
|
61
|
+
node bin/ff_extract_links_autorun.js -c autorun.config.json
|
|
145
62
|
```
|
|
146
63
|
|
|
147
|
-
|
|
64
|
+
Dry-run mode (no browser open):
|
|
148
65
|
|
|
149
66
|
```bash
|
|
150
|
-
|
|
67
|
+
node bin/ff_extract_links_autorun.js -c autorun.config.json --dry-run
|
|
151
68
|
```
|
|
152
69
|
|
|
153
|
-
##
|
|
154
|
-
|
|
155
|
-
- -i, --input <file>: Input file path. Default is urls.txt.
|
|
156
|
-
- -o, --output-prefix <name>: Output prefix. Default is direct-links.
|
|
157
|
-
- -h, --help: Show help.
|
|
158
|
-
- -v, --version: Show installed version.
|
|
159
|
-
|
|
160
|
-
Autorun command options:
|
|
161
|
-
|
|
162
|
-
- -c, --config <file>: Config file path. Default is autorun.config.json.
|
|
163
|
-
- -i, --input <file>: Links file path override.
|
|
164
|
-
- --interval-ms <number>: Delay between opening each link.
|
|
165
|
-
- --start-delay-ms <number>: Delay before first link opens.
|
|
166
|
-
- --max-links <number>: Open only first N links.
|
|
167
|
-
- --dry-run: Print schedule only. No browser opens.
|
|
70
|
+
## Commands (Local)
|
|
168
71
|
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
- -f, --force: Overwrite existing starter files.
|
|
172
|
-
- -h, --help: Show help.
|
|
173
|
-
|
|
174
|
-
## Copy-Paste Examples
|
|
175
|
-
|
|
176
|
-
Use a custom file and custom output name:
|
|
72
|
+
### Extractor
|
|
177
73
|
|
|
178
74
|
```bash
|
|
179
|
-
|
|
75
|
+
node bin/ff_extract_links.js -i urls.txt -o all-direct-links
|
|
180
76
|
```
|
|
181
77
|
|
|
182
|
-
|
|
78
|
+
- `--help`
|
|
183
79
|
|
|
184
80
|
```bash
|
|
185
|
-
|
|
186
|
-
ff-link-extract -i paste_source.txt -o game-links
|
|
81
|
+
node bin/ff_extract_links.js --help
|
|
187
82
|
```
|
|
188
83
|
|
|
189
|
-
|
|
84
|
+
- `--version`
|
|
190
85
|
|
|
191
86
|
```bash
|
|
192
|
-
|
|
87
|
+
node bin/ff_extract_links.js --version
|
|
193
88
|
```
|
|
194
89
|
|
|
195
|
-
|
|
90
|
+
### Autorun
|
|
196
91
|
|
|
197
92
|
```bash
|
|
198
|
-
|
|
93
|
+
node bin/ff_extract_links_autorun.js -c autorun.config.json
|
|
199
94
|
```
|
|
200
95
|
|
|
201
|
-
|
|
96
|
+
Options:
|
|
202
97
|
|
|
203
|
-
|
|
98
|
+
- `--interval-ms`
|
|
99
|
+
- `--start-delay-ms`
|
|
100
|
+
- `--max-links`
|
|
101
|
+
- `--dry-run`
|
|
204
102
|
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
If globally installed:
|
|
103
|
+
### Init
|
|
208
104
|
|
|
209
105
|
```bash
|
|
210
|
-
|
|
106
|
+
node bin/ff_extract_links_init.js
|
|
211
107
|
```
|
|
212
108
|
|
|
213
|
-
|
|
109
|
+
Options:
|
|
214
110
|
|
|
215
|
-
|
|
111
|
+
- `--force`
|
|
112
|
+
- `--help`
|
|
216
113
|
|
|
217
|
-
|
|
114
|
+
## Output Structure
|
|
218
115
|
|
|
219
|
-
|
|
220
|
-
npx -y @hasindu---7/ff-link-extract -i urls.txt -o all-direct-links
|
|
221
|
-
```
|
|
116
|
+
Each extractor run creates:
|
|
222
117
|
|
|
223
|
-
|
|
118
|
+
- `links/YYYY-MM-DD_HH-mm-ss/all-direct-links.txt`
|
|
119
|
+
- `links/YYYY-MM-DD_HH-mm-ss/all-direct-links.html`
|
|
120
|
+
- `links/YYYY-MM-DD_HH-mm-ss/all-direct-links.json`
|
|
224
121
|
|
|
225
|
-
|
|
226
|
-
- Retry the command after a few minutes.
|
|
227
|
-
- Confirm input actually contains valid fuckingfast page URLs.
|
|
122
|
+
So every run is saved separately and easy to compare.
|
|
228
123
|
|
|
229
|
-
|
|
124
|
+
Autorun behavior:
|
|
230
125
|
|
|
231
|
-
-
|
|
232
|
-
- Remove unrelated text if needed and retry.
|
|
126
|
+
- If configured input file is not found in current folder, autorun automatically checks the latest folder inside `links`.
|
|
233
127
|
|
|
234
|
-
##
|
|
128
|
+
## Common Checks
|
|
235
129
|
|
|
236
|
-
|
|
130
|
+
### Extractor version
|
|
237
131
|
|
|
238
132
|
```bash
|
|
239
|
-
node bin/ff_extract_links.js
|
|
133
|
+
node bin/ff_extract_links.js --version
|
|
240
134
|
```
|
|
241
135
|
|
|
242
|
-
|
|
136
|
+
### If extraction fails for some links
|
|
243
137
|
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
138
|
+
- Check the generated JSON report for per-link errors.
|
|
139
|
+
- Retry after a short delay.
|
|
140
|
+
|
|
141
|
+
## npx Method (Optional)
|
|
248
142
|
|
|
249
|
-
|
|
143
|
+
If you prefer running without cloning this folder:
|
|
250
144
|
|
|
251
|
-
|
|
252
|
-
-
|
|
145
|
+
```bash
|
|
146
|
+
npx -y @hasindu---7/ff-link-extract -i urls.txt -o all-direct-links
|
|
147
|
+
```
|
package/bin/ff_extract_links.js
CHANGED