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
+20
View File
@@ -0,0 +1,20 @@
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('comment keys:', Object.keys(thread.comment));
console.log('comment reply_count:', thread.comment.reply_count);
console.log('comment like_count:', thread.comment.like_count);
console.log('comment content text:', thread.comment.content?.text);
}
}
}
test().catch(console.error);