-
Ever wondered what a valid link is looking like? How the script is checking for real working links? |
Beta Was this translation helpful? Give feedback.
Answered by
t0ry003
Jul 2, 2022
Replies: 1 comment
-
# check if a link is a YouTube link
def check_link(link, playlist=False):
if playlist:
if re.search('www.youtube.com/playlist', link):
return True
else:
return False
else:
if re.search('www.youtube.com/watch', link):
return True
else:
return False Well the answer is simple and clear:
|
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
t0ry003
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Well the answer is simple and clear:
www.youtube.com/playlist
;www.youtube.com/watch
;