YouTube Link Finder | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

YouTube Link Finder

Hi I could not figure out what wrong with this code. Seems it returns what it supposed to be. But still could not pass the project “YouTube Link Finder” in python. https://code.sololearn.com/cd74B1MBecJq/?ref=app

19th Feb 2021, 4:13 PM
ArrUn
ArrUn - avatar
4 Answers
+ 3
Thanks JaScript and get , I didn’t realize the video id may contain special character and they are 11 character. I only followed the direction that states “video ID (the combination of letters and numbers at the end of the link)”.
19th Feb 2021, 11:39 PM
ArrUn
ArrUn - avatar
19th Feb 2021, 4:38 PM
JaScript
JaScript - avatar
+ 2
Tip: all YouTube video identifiers are 11 characters in length.
19th Feb 2021, 4:42 PM
#0009e7 [get]
#0009e7 [get] - avatar
+ 1
ArrUn, very glad! I think, they must replace "letters and numbers" with "characters" to not confuse beginners. And one more fact: in long version ("youtube.com") it is always the same page for video ("watch"), and special script watches the identifier and gives data associated with it (video, upload time, comments, likes, dislikes, if "content for children") from the server to it.
20th Feb 2021, 4:40 AM
#0009e7 [get]
#0009e7 [get] - avatar