YouTube Link Finder | Sololearn: Learn to code for FREE!
Novo curso! Todo programador deveria aprender IA generativa!
Experimente uma aula grƔtis
+ 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 Respostas
+ 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