WWW::Coursera - Downloading parallel material (video, text, pdf ...) from Coursera.org online classes.
version 0.12
set username
set password
set course id
debug option
set max parallel http requests
set option ro override existing files
Scrape video materials from lectures area and download paralell related files. The default download directory is set to the course_id. The only one requirement is to enroll the course online. use WWW::Coursera; my $init = WWW::Coursera->new( username => 'xxxx', #is required password => 'xxxx', #is required course_id => "xxxx", #is required debug => 1, #default disabled max_parallel_download => 2, #default 2 override_existing_files => 1, #default false ); $init->run;
Create new directory
Definition of downoading extentions
Create UserAgent object
Save csrf token for authentication
Login with username, password and csrftoken
Replace all non word chars with underscore
Scrape urls from lectures
Download lectures in the course_id folder
Entry point of the package
Ovidiu N. Tatar, <ovn.tatar at gmail.com>
<ovn.tatar at gmail.com>
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.
bug-www-coursera at rt.cpan.org
perl 5.010 or higher Enrol course before start downloding For more info regarding requires modules (see Build.PL)
To install this module, run the following commands:
git clone https://github.com/ovntatar/WWW-Coursera.git cd WWW-Coursera perl Build.PL ./Build ./Build test ./Build install OR (if you don't have write permissions to create man3) use cpanminus: cpanm WWW-Coursera
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)
http://rt.cpan.org/NoAuth/Bugs.html?Dist=WWW-Coursera
AnnoCPAN: Annotated CPAN documentation
http://annocpan.org/dist/WWW-Coursera
CPAN Ratings
http://cpanratings.perl.org/d/WWW-Coursera
Search CPAN
http://search.cpan.org/dist/WWW-Coursera/
Copyright 2013 Ovidiu N. 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.
To install WWW::Coursera, copy and paste the appropriate command in to your terminal.
cpanm
cpanm WWW::Coursera
CPAN shell
perl -MCPAN -e shell install WWW::Coursera
For more information on module installation, please visit the detailed CPAN module installation guide.