Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

picdown

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

picdown

  • 0.1.1
  • Rubygems
  • Socket score

Version published
Maintainers
1
Created
Source

Picdown pipeline Codacy Badge

Picdown is a command line tool that downloads the given images from a source file. It also allows you to make parallel requests to download images. Picdown provides fancy outputs such as progress bar for each request to inform the user.

asciicast

Installation

Picdown is dockerised, which means you can experiment it by building the image from Dockerfile. Please run the below command to do that.

Note that you need to have a proper docker environment first.

docker build . -t picdown

If you want to build it manually, please follow the following instructions.

bundle config --global silence_root_warning true
bundle config --global set path vendor/bundle
bundle install
bundle exec rake install
gem install pkg/picdown-*.gem

Picdown is also a gem published on GitLab. You can have it by skipping installation steps. Please ensure that you have set up GitLab Rubygems Registry before running the following command.

gem install picdown --version <VERSION>

Usage

Please have a look at the help text of picdown for more information.

➜ picdown -h
Commands:
  picdown download FILE            # Download files from the specified source file.
  picdown validate PATH            # Validate source file
  picdown version                  # Print version

validate

It validates the given source file if it contains valid URLs.

picdown validate SOURCE

download

It downloads the images given by the source file. It needs a valid file path.

picdown download SOURCE

To download the images parallel:

picdown download SOURCE --parallel=4

You are also able to configure the download parameters. Please check the below help text for additional parameters.

➜ picdown download -h
...

Options:
  --destination=VALUE               # Destination where files to be downloaded., default: "."
  --parallel=VALUE                  # Number of parallel download processes., default: 1
  --open-timeout=VALUE              # Open timeout for connections. (secs), default: 15
  --read-timeout=VALUE              # Read timeout for connections. (secs), default: 15
  --max-size=VALUE                  # Max file size. (bytes), default: 5242880
  --max-redirects=VALUE             # Max redirections., default: 3

...

Demo

Picdown includes a demo file, which is located in assets, that you can use.

picdown download assets/test.txt

or

docker run -t picdown download assets/test.txt

License

Not licensed yet.

FAQs

Package last updated on 28 May 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc