Skip to content

louismullie/schiphol

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

36 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Schiphol

... is a smart downloader script for Ruby, with

  • Progress bar for downloads, with ETA.
  • Following for 301/302 redirect links.
  • Automatic file type resolution w/ MIMEs.
  • Automatic retries for failed downloads.

Install

gem install schiphol

Usage

Basic

It can't get simpler.

require 'schiphol'

Schiphol.download('http://www.url.com/path/to/file.html')

Advanced

require 'schiphol'

Schiphol.download(
  'http://www.url.com/path/to/file.html',
  # Default values
  :download_folder => '$GEM$/lib/downloads',
  :target_directory => '',
  :show_progress => true,
  :rectify_extensions => false,
  :max_tries => 3
)

Where $GEM$ represents the gem's directory.

License

This software is released under the GPL.

About

A Ruby downloader script with progress bar, retries, 301/2 following and MIME type-based format detection.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages