NAME
WWW::Coursera - Downloading parallel material (video, text, pdf ...) from Coursera.org online classes.
VERSION
version 0.11
username
set username
password
set password
course_id
set course id
debug
debug option
max_parallel_download
set max parallel http requests
override_existing_files
set option ro override existing files
SYNOPSIS
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;
SUBROUTINES/METHODS
directory
Create new directory
extentions
Definition of downoading extentions
UserAgent
Create UserAgent object
csrf
Save csrf token for authentication
login
Login with username, password and csrftoken
convert_filename
Replace all non word chars with underscore
extract_urls
Scrape urls from lectures
download
Download lectures in the course_id folder
run
Entry point of the package
AUTHOR
Ovidiu N. 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.
REQUIREMENT
perl 5.010 or higher
Enrol course before start downloding
For more info regarding requires modules (see Build.PL)
INSTALLATION
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
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 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.