项目作者: saidul-islam-tuhin

项目描述 :
A python script which download image from given link and store into local storage in JPEG format.
高级语言: Python
项目地址: git://github.com/saidul-islam-tuhin/images-downloader.git
创建时间: 2019-02-25T14:58:20Z
项目社区:https://github.com/saidul-islam-tuhin/images-downloader

开源协议:

下载


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 :

    1. pip install pipenv

Execution

  • Clone or download this repository.

    folder Structure

    1. cd images-downloader
  • Activate virtual environment:

    1. pipenv shell
  • Installed Packages from Pipfile :

    1. pipenv install

    After installed packages there have create Pipfile.lock.

  1. ![Pipfile.lock create](https://raw.githubusercontent.com/saidul-islam-tuhin/images-downloader/screenshot-branch/screenshot/pipfile_create.png "Pipfile.lock create")
  • Execute script:
  1. ```
  2. python images_downloader.py images.txt
  3. ```

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

  1. python -m unittest test_images_downloader.py