Então estava eu codando as paradas gafanhotísticas, quando me deparei com este “desafio”.
Como pegar o thumbnail de um vídeo no google vídeos. (how to get google video thumbnail)
Bom, fiz um código em perl, facilmente portável para qquer outra linguagem que resolve isto:
use XML::Simple;
use LWP::Simple;
my $docID = $ARGV[0]; #get the docid from the video url
my $content = get("http://video.google.com/videofeed?docid=$docID");
my $xml = new XML::Simple;
my $data = $xml->XMLin($content);
print $data->{channel}{item}{'media:group'}{'media:thumbnail'}{url};
Leave a Reply