@lunarity/nebula-fetch-cli 0.0.4 → 0.1.0
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/LICENSE +21 -0
- package/README.md +44 -2
- package/dist/index.cjs +64251 -0
- package/package.json +31 -14
- package/bun.lockb +0 -0
- package/commands/youtube.ts +0 -156
- package/dist/index.js +0 -152406
- package/index.ts +0 -57
- package/tsconfig.json +0 -32
- package/utils/validators.ts +0 -45
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 LUNARITY (V01D)
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Nebula Fetch CLI
|
|
2
2
|
|
|
3
|
-
A command-line interface tool for downloading media from different platforms.
|
|
3
|
+
A command-line interface tool for downloading media and scraping web content from different platforms.
|
|
4
4
|
|
|
5
5
|
## 🚀 Installation
|
|
6
6
|
|
|
@@ -36,11 +36,50 @@ nebula-fetch youtube <url> --verbose
|
|
|
36
36
|
nebula-fetch yt <url> -v
|
|
37
37
|
```
|
|
38
38
|
|
|
39
|
-
|
|
39
|
+
#### ⚙️ YouTube Options
|
|
40
40
|
|
|
41
41
|
- `-o, --output <path>` - Specify the output path for the downloaded file
|
|
42
42
|
- `-a, --audio` - Download audio only (saves as .mp3)
|
|
43
43
|
- `-v, --verbose` - Show detailed information during download
|
|
44
|
+
|
|
45
|
+
### 🌐 Web Scraping
|
|
46
|
+
|
|
47
|
+
Scrape and save web page content in multiple formats:
|
|
48
|
+
|
|
49
|
+
```bash
|
|
50
|
+
# Scrape to Markdown (default)
|
|
51
|
+
nebula-fetch scrape <url>
|
|
52
|
+
# or using alias
|
|
53
|
+
nebula-fetch sc <url>
|
|
54
|
+
|
|
55
|
+
# Choose output format
|
|
56
|
+
nebula-fetch scrape <url> -f md # Markdown
|
|
57
|
+
nebula-fetch scrape <url> -f json # JSON
|
|
58
|
+
nebula-fetch scrape <url> -f txt # Plain text
|
|
59
|
+
nebula-fetch scrape <url> -f html # Cleaned HTML
|
|
60
|
+
|
|
61
|
+
# Extract full metadata (meta tags, headings, links, images)
|
|
62
|
+
nebula-fetch scrape <url> --full
|
|
63
|
+
|
|
64
|
+
# Scrape multiple URLs
|
|
65
|
+
nebula-fetch scrape <url1> <url2> <url3>
|
|
66
|
+
|
|
67
|
+
# Specify output directory
|
|
68
|
+
nebula-fetch scrape <url> -o ./scraped
|
|
69
|
+
|
|
70
|
+
# Combine options
|
|
71
|
+
nebula-fetch sc <url> --full -f json -o ./output -v
|
|
72
|
+
```
|
|
73
|
+
|
|
74
|
+
#### ⚙️ Scrape Options
|
|
75
|
+
|
|
76
|
+
- `-o, --output <path>` - Output path (folder or file)
|
|
77
|
+
- `-f, --format <format>` - Output format: `md`, `json`, `txt`, `html` (default: `md`)
|
|
78
|
+
- `--full` - Extract full metadata (meta tags, headings, links, images)
|
|
79
|
+
- `-v, --verbose` - Show verbose output
|
|
80
|
+
|
|
81
|
+
### 🔧 Global Options
|
|
82
|
+
|
|
44
83
|
- `--version` - Show version number
|
|
45
84
|
- `--help` - Show help information
|
|
46
85
|
|
|
@@ -48,6 +87,9 @@ nebula-fetch yt <url> -v
|
|
|
48
87
|
|
|
49
88
|
- YouTube video downloads
|
|
50
89
|
- Audio-only extraction option
|
|
90
|
+
- Web page scraping with multiple output formats (Markdown, JSON, text, HTML)
|
|
91
|
+
- Full metadata extraction (OG tags, Twitter cards, headings, links, images)
|
|
92
|
+
- Concurrent multi-URL processing
|
|
51
93
|
- Custom output path
|
|
52
94
|
- Verbose mode for detailed information
|
|
53
95
|
|