raphaelakpan / image_fetcher

A script to download images from a text file

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Image Fetcher App 🏞

Features

The Image Fetcher app is a Ruby Script that does the following:

  • Accepts a relative text file path when excecuted.
  • Reads the file and expects each line to be an image URL. URLs must end in .jpg, .gif, or .png
  • Uses the URLs to download the images and store in your local disk
  • Downloaded images are stored in a "/downloads" folder in the root of this project
  • Displays results of downloaded and error counts

Sample File

See an example file here

Requirements

  • Ruby
  • Bundler

Dependencies

Getting Started

  • Clone the repo: git clone https://github.com/raphaelakpan/image_fetcher.git
  • Change directory: cd image_fetcher
  • Install dependencies: bundle install
  • Run ruby app.rb ./sample_data.txt

Sample output

image

Tests

  • Run rspec

About

A script to download images from a text file


Languages

Language:Ruby 100.0%