Jing Kang - 康 小靖 > Win32-IEAutomation-RapidShare-0.04 > Win32::IEAutomation::RapidShare

Download:
Win32-IEAutomation-RapidShare-0.04.tar.gz

Dependencies

Annotate this POD

View/Report Bugs
Module Version: 0.04   Source  

NAME ^

Win32::IEAutomation::RapidShare - Perl extension for downloading files hosted by RapidShare

SYNOPSIS ^

  use Win32::IEAutomation::RapidShare;

  my $ie = Win32::IEAutomation::RapidShare->new(
        taskName     => 'box180FPS',
        debug        => 1,
        links        => \@rsURL,
        loopServer   => 'yes',
        stopIfBroken => 'yes'
        startTime    => '17:02',
        stopTime     => '09:00'
  );

  my $url = 'http://rapidshare.com/users/ISWUF5';

  $num = $ie->add_rslinks( url => $url );

  $num = $ie->add_rslinks( array => \@uuu );

  $num = $ie->add_rslinks( file => "rsList.txt");

  $num = $ie->check_rslinks();
  
  $ie->downloadrs();

DESCRIPTION ^

This module uses RapidShare free user account to batch download files. No interactive user action is involved. If waiting between downloads is annoy, please upgrade to premium users. Time works for you.

METHODS ^

Win32::IEAutomation::RapidShare->new( )

This is the constructor for new Internet Explorer instance through Win32::OLE. Calling this function will create a perl object which internally contains a automation object for internet explorer. In addition to Win32::IEAutomation's options, RapidShare specific options are supported.

$ie->add_rslinks( )

Import download links from different resource. Duplicated links will be removed from download list. This method returns the number of links.

$ie->check_rslinks( )

Validate all links by using RapidShare file checking tool. This method returns the number of broken links. if stopIfBroken is defined and some links broken, the script will exit.

$ie->downloadrs( )

Download all links you jus imported.

Sample Script rs.pl to download a single file ^

        use Win32::IEAutomation::RapidShare;

        my $ie = Win32::IEAutomation::RapidShare->new(
                links =>[$ARGV[0]],
        );

        $ie->check_rslinks();
        $ie->downloadrs();

SEE ALSO ^

Win32::IEAutomation.

AUTHOR ^

Jing Kang <kxj@hotmail.com>

syntax highlighting: