Code Monkey home page Code Monkey logo

lsdl's Introduction

lsdl

A small shellscript to download multiple files on a list at once.

Dependency

wget ( and maybe zsh )

Usage

make a file with urls separated with newline:

test.dls:

http://www.example.com/image01.jpg
http://www.example.com/image02.jpg
http://www.example.com/image03.jpg
http://www.example.com/image04.jpg

on the same directory type lsdl! Then, it will do three things:

  1. make a directory named "test/"
  2. download all the url in "test/"
  3. move the test.dls underneath test/ and rename it to "receipt"

If you have different lists in the same folder, it downloads it all!

Options

Create mode (-c)

If you put the -c option, it switches to create mode to create list files.

If you connect to a pipe. it reads from it too.

Wget Options (-w)

You can add custom wget options to every download

lsdl -w ...

Sleep Option (-s)

You can add a rate limit in seconds to sleep between each download

lsdl -s 1 # sleeps 1 second after each download

Cookies

If you need cookie to access the resource, you can simply add a .cookie file to the same level as the .dls file, and lsdl will automatically include it.

lsdl's People

Watchers

Yuichiro Smith avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.