http://www.perlmonks.org?node_id=944283

prince26121991 has asked for the wisdom of the Perl Monks concerning the following question:

Well Hi to all of you guys I m a new user here n beginner of perl Dont know much more about perl That's why m here to gain some knowledge so here is my first query If I have A YOUTUBE link 'http://www.youtube.com/watch?v=Video ID' Now I just want to extract the name of this video from youtube page Is it possible by using perl If yes than How & which module I have to install for it Thanks

Replies are listed 'Best First'.
Re: How I can get a Youtube Video Title using it's Link
by Anonymous Monk on Dec 19, 2011 at 17:38 UTC
Re: How I can get a Youtube Video Title using it's Link
by Tux (Canon) on Dec 19, 2011 at 23:39 UTC

    Also note that the way the video is linked/embedded changes over time. About a year ago, the best program to fetch youtube movies was clive. It was written in perl, which it was keeping up-to-date and kinda always worked. When it stopped working I switched to youtube-dl. It is written in python. Sorry to curse in this church. You could probably fetch clive and try if it now works for you. If it doesn't, you can fix it. It is open source.


    Enjoy, Have FUN! H.Merijn
      get-flash-videos, written in perl, still works, its updated frequently :) https://github.com/monsieurvideo/get-flash-videos/blob/master/lib/FlashVideo/Site/Youtube.pm
OT: "its" vs. "it's"
by educated_foo (Vicar) on Dec 20, 2011 at 13:38 UTC
    If you want to correctly use "its" vs. "it's" (you didn't), remember that "it's" means "it is," and "its" means "belonging to it."
      ..."it's" means "it is"...

      So "It's been raining all day" means "It is been raining all day"? ;)

        Good point. In this case, "it's" is a contraction of "it has".

      So you looked at the almost totally unpunctuated OP and that was what caught your (you're? yore? Eeyore?) eye? I guess it could have been worse; at least there were capitals (capitols?) at the beginnings of teh sentences.     sigh

        Word is The.
A reply falls below the community's threshold of quality. You may see it by logging in.