79160751

Date: 2024-11-05 21:39:07
Score: 0.5
Natty:
Report link

You get an error because of wrong reference to fetchTranscript.

Here is the correct way:

 var yt = require("youtube-transcript");
 var transcript_obj = await yt.YoutubeTranscript.fetchTranscript('_cY5ZD9yh2I'

 const text = transcript_obj.map((t) => t.text).join(' ');
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: ugmurthy