@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 CHANGED
@@ -1,252 +1,147 @@
1
1
  # ff-link-extract
2
2
 
3
- Extracts direct download links from fuckingfast page links and generates clean output files.
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 Overview
5
+ ## NPM Commands Reference
6
6
 
7
- This package ships with three CLI commands:
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
- - `ff-link-extract`: Main extractor. Reads input links (plain links, HTML, or supported paste URLs) and generates direct download outputs.
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
- Quick examples:
18
+ This guide is local-first. No global install required.
14
19
 
15
- ```bash
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
- npm install -g @hasindu---7/ff-link-extract
23
+ cd "c:\Users\Owner\Documents\Hasindu\Fitgirl scr"
54
24
  ```
55
25
 
56
- Then run:
26
+ ### 2) Install dependencies in this folder
57
27
 
58
28
  ```bash
59
- ff-link-extract -i urls.txt -o all-direct-links
29
+ npm install
60
30
  ```
61
31
 
62
- Create starter files in your current folder:
32
+ ### 3) Create starter files in this folder
63
33
 
64
34
  ```bash
65
- ff-link-extract-init
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
- Each run creates a new timestamped folder under links so previous runs stay saved and easy to compare.
43
+ ### 4) Put links into urls.txt
105
44
 
106
- ## Autorun Mode (Open Links At Intervals)
45
+ Supported input:
107
46
 
108
- This package also includes a second command:
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
- - ff-link-extract-autorun
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
- ff-link-extract-autorun -c autorun.config.json
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
- Quick test mode without opening browser:
58
+ ### 6) Run autorun (optional)
142
59
 
143
60
  ```bash
144
- ff-link-extract-autorun -c autorun.config.json --dry-run
61
+ node bin/ff_extract_links_autorun.js -c autorun.config.json
145
62
  ```
146
63
 
147
- Override config from command line:
64
+ Dry-run mode (no browser open):
148
65
 
149
66
  ```bash
150
- ff-link-extract-autorun -i all-direct-links.txt --interval-ms 15000 --start-delay-ms 5000 --max-links 20
67
+ node bin/ff_extract_links_autorun.js -c autorun.config.json --dry-run
151
68
  ```
152
69
 
153
- ## Command Options
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
- Init command options:
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
- ff-link-extract -i my-links.txt -o game-links
75
+ node bin/ff_extract_links.js -i urls.txt -o all-direct-links
180
76
  ```
181
77
 
182
- Use a paste source URL directly:
78
+ - `--help`
183
79
 
184
80
  ```bash
185
- echo "https://paste.fitgirl-repacks.site/?add4fc7178e6fa8f#831kvVZtdGSNdTncYhZ8e2vnks7wuCyYYXHYFeZaWhT3" > paste_source.txt
186
- ff-link-extract -i paste_source.txt -o game-links
81
+ node bin/ff_extract_links.js --help
187
82
  ```
188
83
 
189
- Check installed version:
84
+ - `--version`
190
85
 
191
86
  ```bash
192
- ff-link-extract --version
87
+ node bin/ff_extract_links.js --version
193
88
  ```
194
89
 
195
- Show help:
90
+ ### Autorun
196
91
 
197
92
  ```bash
198
- ff-link-extract --help
93
+ node bin/ff_extract_links_autorun.js -c autorun.config.json
199
94
  ```
200
95
 
201
- ## Updating
96
+ Options:
202
97
 
203
- If using npx:
98
+ - `--interval-ms`
99
+ - `--start-delay-ms`
100
+ - `--max-links`
101
+ - `--dry-run`
204
102
 
205
- - No manual update needed. You get the newest version by default.
206
-
207
- If globally installed:
103
+ ### Init
208
104
 
209
105
  ```bash
210
- npm i -g @hasindu---7/ff-link-extract@latest
106
+ node bin/ff_extract_links_init.js
211
107
  ```
212
108
 
213
- ## Troubleshooting
109
+ Options:
214
110
 
215
- Problem: command not found after global install on macOS or Linux.
111
+ - `--force`
112
+ - `--help`
216
113
 
217
- Use npx instead:
114
+ ## Output Structure
218
115
 
219
- ```bash
220
- npx -y @hasindu---7/ff-link-extract -i urls.txt -o all-direct-links
221
- ```
116
+ Each extractor run creates:
222
117
 
223
- Problem: extraction fails for some links.
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
- - Check all-direct-links.json for per-link error details.
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
- Problem: no links found in input.
124
+ Autorun behavior:
230
125
 
231
- - Make sure the file includes URLs starting with https://fuckingfast.co/
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
- ## Local Development
128
+ ## Common Checks
235
129
 
236
- Run script directly:
130
+ ### Extractor version
237
131
 
238
132
  ```bash
239
- node bin/ff_extract_links.js -i urls.txt -o all-direct-links
133
+ node bin/ff_extract_links.js --version
240
134
  ```
241
135
 
242
- Test package command locally:
136
+ ### If extraction fails for some links
243
137
 
244
- ```bash
245
- npm link
246
- ff-link-extract -i urls.txt -o all-direct-links
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
- ## Package
143
+ If you prefer running without cloning this folder:
250
144
 
251
- - Package: @hasindu---7/ff-link-extract
252
- - Current bundled files are organized under bin and templates for easier maintenance.
145
+ ```bash
146
+ npx -y @hasindu---7/ff-link-extract -i urls.txt -o all-direct-links
147
+ ```
@@ -1,4 +1,4 @@
1
- #!/usr/bin/env node
1
+ #!/usr/bin/env node
2
2
 
3
3
  const fs = require('fs');
4
4
  const path = require('path');
@@ -1,4 +1,4 @@
1
- #!/usr/bin/env node
1
+ #!/usr/bin/env node
2
2
 
3
3
  const fs = require('fs');
4
4
  const path = require('path');
@@ -1,4 +1,4 @@
1
- #!/usr/bin/env node
1
+ #!/usr/bin/env node
2
2
 
3
3
  const fs = require('fs');
4
4
  const path = require('path');
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hasindu---7/ff-link-extract",
3
- "version": "2.0.1",
3
+ "version": "2.0.2",
4
4
  "description": "Extract direct fuckingfast download links from page URLs",
5
5
  "bin": {
6
6
  "ff-link-extract": "bin/ff_extract_links.js",