NAME
WWW::Coursera - Downloading material (video, text, pdf ...) from Coursera.org online classes.
VERSION
Version 0.01
SYNOPSIS
It scrapes the course index page to get lecture names, and then downloads the related materials.
Code snippet.
use WWW::Coursera;
my $initial = WWW::Coursera->new( username => 'xxxxx', password => 'xxxx', course => 'xxxx');
$initial->set_localdir("/home/xxxxx/Perl/Coursera/tmp");
$initial->get_all();
SUBROUTINES/METHODS
new
Object construction with user authorization and course name parameter.
set_localdir
Set download folder by set $inizial->set_localdir("OS_FOLDER");
set_cookie
In the source code below, will create a cookie named cookie.txt to store header information.
set_csrftoken
Filter csrf_token key from the cookie.txt file.
get_session
Send a new html request to get session cokkie token and save session key in global variable.
get_links
Extract links from course index page.
download
Download lectures.
get_all
Main, which marks the entry point of the program.
AUTHOR
Ovidiu Nita Tatar, <ovn.tatar at gmail.com>
BUGS
Please report any bugs or feature requests to bug-www-coursera at rt.cpan.org
, or through the web interface at http://rt.cpan.org/NoAuth/ReportBug.html?Queue=WWW-Coursera. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.
SUPPORT
You can find documentation for this module with the perldoc command.
perldoc WWW::Coursera
or
https://github.com/ovntatar/WWW-Coursera/issues
You can also look for information at:
RT: CPAN's request tracker (report bugs here)
AnnoCPAN: Annotated CPAN documentation
CPAN Ratings
Search CPAN
ACKNOWLEDGEMENTS
LICENSE AND COPYRIGHT
Copyright 2013 Ovidiu Nita Tatar.
This program is free software; you can redistribute it and/or modify it under the terms of either: the GNU General Public License as published by the Free Software Foundation; or the Artistic License.
See http://dev.perl.org/licenses/ for more information.