Files
ContentGen_BE/test-yt.js
T
Harun CAN a40619ef33
Backend Deploy 🚀 / build-and-deploy (push) Has been cancelled
main
2026-05-06 10:48:07 +02:00

5 lines
229 B
JavaScript

const yt = require('youtube-transcript');
yt.YoutubeTranscript.fetchTranscript('https://www.youtube.com/watch?v=D98UJl6Ea6o')
.then(res => console.log('Length:', res.map(t => t.text).join(' ').length))
.catch(console.error);