Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/motemen/warg
Downloader
https://github.com/motemen/warg
Last synced: about 2 months ago
JSON representation
Downloader
- Host: GitHub
- URL: https://github.com/motemen/warg
- Owner: motemen
- Created: 2010-12-08T01:26:13.000Z (about 14 years ago)
- Default Branch: master
- Last Pushed: 2010-12-08T01:26:44.000Z (about 14 years ago)
- Last Synced: 2024-05-01T23:31:49.515Z (9 months ago)
- Language: Perl
- Homepage:
- Size: 891 KB
- Stars: 5
- Watchers: 4
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.mkdn
- Changelog: Changes
Awesome Lists containing this project
README
# NAME
Warg - Downloader
# SYNOPSIS
% ./warg.pl # implies --interface Console
% ./warg.pl -i IRC --server localhost:6667 --channels #foo
# DESCRIPTION
Warg is a downloader extensible by scripts.
Once a URL is feeded, Warg searches its downloader scripts directory for applicable one to that URL.
When found, Warg produces a job for downloading. Downloader can ask user for input, such as captcha answer.# DOWNLOADER
A downloader (for a site) is a Perl script.
The script should have `our $Config` which is a `HTTP::Config` or a regexp that matches URL.
The script must return a coderef, which receives `Warg::Downloader` and `URI` as argumetns.
our $Config = HTTP::Config->new;
$Config->add(m_host => ...);sub {
my ($self, $url) = @_;
...
$self->download($file_url);
};TBD
# AUTHOR
motemen
# LICENSE
This library is free software; you can redistribute it and/or modify
it under the same terms as Perl itself.