Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re^3: explore a complexe hash structure return by Webservices::GData::YouTube

by Anonymous Monk
on Dec 11, 2012 at 09:11 UTC ( [id://1008244]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
        foreach my $video (@$videos) {
            say $video->video_id;
    ...
            say $video->favorite_count;
            say $video->duration;
        }
    
  2. or download this
    lib/WebService/GData/YouTube/Doc/GeneralOverview.pod
    
    ...
    
    91:ok( @{ $entry->thumbnails } == 5, 'number of thumbnails is right.' 
    +);
    93:ok($entry->thumbnails->[0]->url eq 'http://i.ytimg.com/vi/qWAY3YvHq
    +LE/default.jpg','thumbnail is properly set.');
    
  3. or download this
               my $thumbs =$video->thumbnails;
               foreach my $thumb (@$thumbs) {
    ...
                    say $thumb->width;
                    say $thumb->height;
               }
    
  4. or download this
    #!/usr/bin/perl --
    use strict;
    use warnings;
    ...
    #~         say $thumb->height;
        }
    } ## end sub display_video
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others perusing the Monastery: (5)
As of 2024-04-19 07:34 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found