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

19 lines
646 B
JavaScript

const { Innertube } = require('youtubei.js');
const util = require('util');
async function test() {
const youtube = await Innertube.create({ lang: 'tr', location: 'TR' });
const videoId = 'ix8cLltPCCE';
const commentThread = await youtube.getComments(videoId);
if (commentThread.contents && commentThread.contents.length > 0) {
const thread = commentThread.contents.find(t => t.has_replies);
if (thread) {
console.log('replies:', util.inspect(thread.replies, {depth: null}));
console.log('comment_replies_data:', util.inspect(thread.comment_replies_data, {depth: null}));
}
}
}
test().catch(console.error);