main
Backend Deploy 🚀 / build-and-deploy (push) Has been cancelled

This commit is contained in:
Harun CAN
2026-05-06 10:48:07 +02:00
parent 2d6f068363
commit a40619ef33
44 changed files with 4295 additions and 126 deletions
+18
View File
@@ -0,0 +1,18 @@
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);