saidul-islam-tuhin / images-downloader

A python script which download image from given link and store into local storage in JPEG format.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Image Downloader

Python Version

A python script which download image from given link and store into local storage in JPEG format.

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes.

Prerequisites

  • pip

  • pipenv :

    pip install pipenv
    

Execution

  • Clone or download this repository.

    folder Structure

  • cd images-downloader
    
  • Activate virtual environment:

     pipenv shell 
    
  • Installed Packages from Pipfile :

    pipenv install 
    

    After installed packages there have create Pipfile.lock.

    Pipfile.lock create

  • Execute script:

     python images_downloader.py images.txt
    

Expected Output

After executing images_downloader script automatically there have been created Images folder where image are stored in JPEG format.

Output

In debug.log, we can see which image are downloaded and how many are remain in real time.

debug.log gif

Running the tests

python -m unittest test_images_downloader.py

About

A python script which download image from given link and store into local storage in JPEG format.


Languages

Language:Python 100.0%