Skip to content

Where to get chanel id from channel link #614

Answered by TechStudent10
DinhHuy2010 asked this question in Q&A
Discussion options

You must be logged in to vote

Copied and Pasted from the previous thread by ThioJoe;


If you're asking about the actual code in the program, it's this function:

def validate_channel_id(inputted_channel):

Just note it's not perfect, and sometimes returns the wrong channel if a /c/ type URL is given, because of the nature of how YouTube's API requires you to fetch it

Replies: 2 comments 5 replies

Comment options

You must be logged in to vote
5 replies
@ThioJoe
Comment options

@TechStudent10
Comment options

@DinhHuy2010
Comment options

@ThioJoe
Comment options

@DinhHuy2010
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by DinhHuy2010
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants