Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Retrieve YouTube video statistics

by sg (Pilgrim)
on Feb 19, 2009 at 21:14 UTC ( [id://745197]=perlquestion: print w/replies, xml ) Need Help??

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

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://745197]
Approved by ww
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others goofing around in the Monastery: (9)
As of 2024-04-24 10:14 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found