RE: If you want to download videos from YouTube

  • From: "Holdsworth, Lynn" <Lynn.Holdsworth@xxxxxxxxxxx>
  • To: <programmingblind@xxxxxxxxxxxxx>
  • Date: Fri, 15 May 2009 08:22:57 +0100

That a useful one Octavian. Anyone know enough to translate it to PHP? 


---
Lynn Holdsworth
Web Accessibility Consultant

RNIB Access Consultancy Services
105 Judd Street
London
WC1H 9NE

Tel: 020 7391 2178
Fax: 020 7387 7109
Email: Lynn.Holdsworth@xxxxxxxxxxx
Web: www.rnib.org.uk/gooddesign

Why not follow us on Twitter? See us at http://twitter.com/webaccesscentre

Also keep up to date with news in the world of accessibility in our blog at 
http://www.rnib.org.uk/wacblog 

RNIB Access Consultancy Services aims to help create an inclusive society 
through improved access for disabled people to physical environments, signage, 
websites, information and products.

The new service combines the talents of JMU Access Partnership, the Web Access 
Centre and related services to provide a one-stop shop for improving 
accessibility.
-----Original Message-----
From: programmingblind-bounce@xxxxxxxxxxxxx 
[mailto:programmingblind-bounce@xxxxxxxxxxxxx] On Behalf Of Octavian Râsnita
Sent: 27 February 2009 18:43
To: programmingblind@xxxxxxxxxxxxx
Subject: If you want to download videos from YouTube

Hello,

Here it is a short program that downloads a specified video from YouTube:

use WebService::YouTube::Util;
use File::Slurp;

my $url = shift || 'http://youtube.com/?v=Plvx8hjgLVc';

$url =~ s|^http://youtube\.com/\?v=||;
my $content = WebService::YouTube::Util->get_video($url);
write_file("$url.flv", {binmode => ':raw'}, \$content);

HTH.

Octavian

__________
View the list's information and change your settings at 
//www.freelists.org/list/programmingblind



-- 
DISCLAIMER:

NOTICE: The information contained in this email and any attachments is 
confidential and may be privileged.  If you are not the intended 
recipient you should not use, disclose, distribute or copy any of the 
content of it or of any attachment; you are requested to notify the 
sender immediately of your receipt of the email and then to delete it 
and any attachments from your system.

RNIB endeavours to ensure that emails and any attachments generated by
its staff are free from viruses or other contaminants.  However, it 
cannot accept any responsibility for any  such which are transmitted.
We therefore recommend you scan all attachments.

Please note that the statements and views expressed in this email and 
any attachments are those of the author and do not necessarily represent
those of RNIB.

RNIB Registered Charity Number: 226227

Website: http://www.rnib.org.uk



This message has been scanned for viruses by Websense Hosted Security - 
http://www.websense.com/content/HostedEmailSecurity.aspx

__________
View the list's information and change your settings at
//www.freelists.org/list/programmingblind

Other related posts: