http://qs321.pair.com?node_id=745197

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

Given a list of YouTube videos, I would like to know their statistics, viz., number of views, user rating, clicks from sites linking to the video, number of comments etc. YouTube reports this information on each video's page. I would like to use a perl script to retrieve this information. Any recommendations on modules that I might look at?

Replies are listed 'Best First'.
Re: Retrieve YouTube video statistics
by Lawliet (Curate) on Feb 19, 2009 at 21:35 UTC

    One of the LWP modules to obtain the source (or plain text) of the page (LWP Simple and LWP UserAgent seem like good choices) and perhaps an HTML parsing module to parse the HTML.

    Update: There is Webservice Youtube too. I searched Google to find it. :)

    And you didn't even know bears could type.

Re: Retrieve YouTube video statistics
by Corion (Patriarch) on Feb 19, 2009 at 21:57 UTC