Module: PicFisher
- Defined in:
- lib/picfisher.rb,
lib/picfisher/log.rb,
lib/picfisher/version.rb,
lib/picfisher/sanitizer.rb,
lib/picfisher/downloader.rb,
lib/picfisher/fishing_boat.rb,
lib/picfisher/url_extractor.rb
Overview
Extracts the image urls from the given file and download them to the given directory
Defined Under Namespace
Modules: Downloader, FishingBoat, Log, Sanitizer, URLExtractor Classes: Error
Constant Summary collapse
- VERSION =
"0.2.3"
Class Method Summary collapse
-
.fish(images_file_path, output_directory_path) ⇒ nil
Extracts the image urls from the given file and download them to the given directory.
Class Method Details
.fish(images_file_path, output_directory_path) ⇒ nil
Extracts the image urls from the given file and download them to the given directory
21 22 23 24 25 26 27 28 |
# File 'lib/picfisher.rb', line 21 def self.fish(images_file_path, output_directory_path) PicFisher::Log.info "PicFisher [#{PicFisher::VERSION}] is running..." run_validations(images_file_path, output_directory_path) PicFisher::FishingBoat.fish(images_file_path, output_directory_path) PicFisher::Log.info "PicFisher is finished!" end |