Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

<10.1.0> <LOGIN_REQUIRED> #696

Closed
4 tasks done
nikunjgupta586 opened this issue Jul 23, 2024 · 6 comments · Fixed by #708
Closed
4 tasks done

<10.1.0> <LOGIN_REQUIRED> #696

nikunjgupta586 opened this issue Jul 23, 2024 · 6 comments · Fixed by #708
Labels
bug Something isn't working

Comments

@nikunjgupta586
Copy link

Steps to reproduce

use getbasicinfo() for any of the youtube video with any of the server location.
result throws "LOGIN_REQUIRED" for any of the youtube videos.
we can't access any youtube video without login

Failure Logs

status: "LOGIN_REQUIRED"

Expected behavior

need it to be worked without account login

Current behavior

throwing "LOGIN_REQUIRED" for any of the youtube videos

Version

Default

Anything else?

No response

Checklist

  • I am running the latest version.
  • I checked the documentation and found no answer.
  • I have searched the existing issues and made sure this is not a duplicate.
  • I have provided sufficient information.
@nikunjgupta586 nikunjgupta586 added the bug Something isn't working label Jul 23, 2024
@LuanRT
Copy link
Owner

LuanRT commented Jul 23, 2024

Hi! Can you provide the full error message?

@retrouser955
Copy link

retrouser955 commented Jul 24, 2024

I'm not entirely sure but this could be related. It seems mostly servers are getting these errors in an attempt to block off scrapers.

@nikunjgupta586
Copy link
Author

@LuanRT below is the response we are getting from getbasicinfo() function for any of the youtube video.

info -- VideoInfo {
streaming_data: undefined,
playability_status: {
status: 'LOGIN_REQUIRED',
reason: 'Sign in to confirm you’re not a bot',
embeddable: false,
audio_only_playablility: null,
error_screen: PlayerErrorMessage {
type: 'PlayerErrorMessage',
subreason: [Text],
reason: [Text],
proceed_button: [Button],
thumbnails: [Array],
icon_type: 'ERROR_OUTLINE'
}
},
player_config: undefined,
basic_info: {
embed: null,
channel: null,
is_unlisted: undefined,
is_family_safe: undefined,
category: null,
has_ypc_metadata: null,
start_timestamp: null,
end_timestamp: null,
view_count: undefined,
like_count: undefined,
is_liked: undefined,
is_disliked: undefined
},
annotations: undefined,
storyboards: undefined,
endscreen: undefined,
captions: undefined,
cards: undefined
}

@retrouser955
Copy link

@LuanRT as I suspected, it is definitely because of the A/B testing YouTube is doing to prevent scrappers. They secured it on their server-side so even YouTube's clients are affected.

@honzawashere
Copy link

honzawashere commented Jul 26, 2024

I bet this is just that page that pops up usually on servers or suspicious clients saying "Please sign in to verify you are not a bot" or something like that. just use auth as shown in examples of this repository and you should be good to go

@unixfox
Copy link
Contributor

unixfox commented Jul 27, 2024

Related: #674

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants