extract-youtube 1.0.1 β 1.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 +1 -58
- package/dist/cli.js +1852 -0
- package/dist/cli.js.map +1 -0
- package/package.json +5 -3
- package/vite.config.ts +10 -2
- package/dist/index.cjs +0 -2
- package/dist/index.cjs.map +0 -1
- package/dist/index.mjs +0 -2
- package/dist/index.mjs.map +0 -1
package/README.md
CHANGED
|
@@ -8,17 +8,7 @@ A production-ready TypeScript port of the popular Python [`youtube-transcript-ap
|
|
|
8
8
|
|
|
9
9
|
### π **Superior to Other NPM Alternatives**
|
|
10
10
|
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
```
|
|
14
|
-
Bundle Size Serverless TypeScript Reliability
|
|
15
|
-
extract-youtube 7KB β‘ β
Yes β
Full βββββ
|
|
16
|
-
youtube-transcript 25KB π β οΈ Limited β οΈ Partial βββ
|
|
17
|
-
Other packages 20-300KB π’ β No β None ββ
|
|
18
|
-
```
|
|
19
|
-
|
|
20
|
-
**Key Advantages:**
|
|
21
|
-
|
|
11
|
+
-
|
|
22
12
|
- β
**Proven algorithm** - Direct port of Python's `youtube-transcript-api` (100k+ monthly PyPI downloads)
|
|
23
13
|
- β
**Serverless-first** - Works flawlessly in AWS Lambda, Vercel, Cloudflare Workers, Next.js Edge
|
|
24
14
|
- β
**70% smaller** - ~7KB gzipped vs 20-30KB+ for alternatives
|
|
@@ -362,37 +352,6 @@ youtube-transcript: ~45MB β οΈ
|
|
|
362
352
|
Python package: ~80MB β
|
|
363
353
|
```
|
|
364
354
|
|
|
365
|
-
## Migration Guide
|
|
366
|
-
|
|
367
|
-
### From `youtube-transcript` (npm)
|
|
368
|
-
|
|
369
|
-
```typescript
|
|
370
|
-
// Before (youtube-transcript)
|
|
371
|
-
import { YoutubeTranscript } from 'youtube-transcript';
|
|
372
|
-
const transcript = await YoutubeTranscript.fetchTranscript(videoId);
|
|
373
|
-
|
|
374
|
-
// After (extract-youtube)
|
|
375
|
-
import { YouTubeTranscriptApi } from 'youtube-transcript-api';
|
|
376
|
-
const api = new YouTubeTranscriptApi();
|
|
377
|
-
const transcript = await api.fetch(videoId);
|
|
378
|
-
```
|
|
379
|
-
|
|
380
|
-
### From Python `youtube-transcript-api`
|
|
381
|
-
|
|
382
|
-
```python
|
|
383
|
-
# Before (Python)
|
|
384
|
-
from youtube_transcript_api import YouTubeTranscriptApi
|
|
385
|
-
transcript = YouTubeTranscriptApi().get_transcript('video_id')
|
|
386
|
-
```
|
|
387
|
-
|
|
388
|
-
```typescript
|
|
389
|
-
// After (Node.js/TypeScript)
|
|
390
|
-
import { YouTubeTranscriptApi } from 'youtube-transcript-api';
|
|
391
|
-
const api = new YouTubeTranscriptApi();
|
|
392
|
-
const transcript = await api.fetch('video_id');
|
|
393
|
-
```
|
|
394
|
-
|
|
395
|
-
The API is intentionally similar to make migration seamless!
|
|
396
355
|
|
|
397
356
|
## Reliability
|
|
398
357
|
|
|
@@ -489,22 +448,6 @@ try {
|
|
|
489
448
|
|
|
490
449
|
MIT
|
|
491
450
|
|
|
492
|
-
## Credits
|
|
493
|
-
|
|
494
|
-
TypeScript port of the excellent [youtube-transcript-api](https://github.com/jdepoix/youtube-transcript-api) by [@jdepoix](https://github.com/jdepoix).
|
|
495
|
-
|
|
496
|
-
Special thanks to the Python package maintainers for creating such a robust and reliable transcript extraction algorithm.
|
|
497
|
-
|
|
498
451
|
## Contributing
|
|
499
452
|
|
|
500
453
|
Contributions are welcome! Please feel free to submit a Pull Request.
|
|
501
|
-
|
|
502
|
-
## Support
|
|
503
|
-
|
|
504
|
-
- π [Report Issues](https://github.com/yourusername/youtube-transcript-api/issues)
|
|
505
|
-
- π¬ [Discussions](https://github.com/yourusername/youtube-transcript-api/discussions)
|
|
506
|
-
- β Star this repo if you find it useful!
|
|
507
|
-
|
|
508
|
-
---
|
|
509
|
-
|
|
510
|
-
**Made with β€οΈ for the serverless and edge computing community**
|