YouTube.js icon indicating copy to clipboard operation
YouTube.js copied to clipboard

10.5.0 Missing comments_entry_point_header data sometimes for the same video

Open PikachuEXE opened this issue 1 year ago • 0 comments

Steps to reproduce

  • Save following script into a file e.g. script.js
  • Install youtube.js (I did this in FreeTube project folder)
  • node script.js
const { Innertube } = require('youtubei.js')

async function createInnertube(options = { withPlayer: false, location: undefined, safetyMode: false, clientType: undefined, generateSessionLocally: true }) {
  return await Innertube.create({
    enable_safety_mode: false,
    generate_session_locally: !!options.generateSessionLocally
  })
}

console.info('hi');

let id = 'P0uzckVfO_M';

(async () => {
  const webInnertube = await createInnertube({ withPlayer: true, generateSessionLocally: false })

  const info = await webInnertube.getInfo(id)

  console.info('info.comments_entry_point_header', info.comments_entry_point_header)
})()

Failure Logs

hi
info.comments_entry_point_header undefined

Expected behavior

See lower image

Current behavior

See upper image

Version

Default

Anything else?

No idea if YT doing some AB testing or anti-scraping/bot stuff But this only started happening is last few days

Looking at the response for https://www.youtube.com/youtubei/v1/next comments-entry-point seems missing No idea if bug or data moved somewhere image

Update 1 - Add response SC when comments-entry-point present image

Checklist

  • [X] I am running the latest version.
  • [X] I checked the documentation and found no answer.
  • [X] I have searched the existing issues and made sure this is not a duplicate.
  • [X] I have provided sufficient information.

PikachuEXE avatar Oct 16 '24 12:10 PikachuEXE