Code Monkey home page Code Monkey logo

snatch's Introduction

snatch

Downloads all files from URLs defined in a text file into a pre-defined directory, with the option of executing a SHA-256 checksum.


Instructions

  1. Create a file called "source.txt" with URLs to each file on a separate line
  2. Edit snatch.sh and verify the configuration under "User Configuration"
  3. Execute the script

User Configuration Options

  1. Snatch_Source: path to a text file with each link to download on a separate line.
  2. Snatch_Destination: path to a folder where Snatch should download your files to (no trailing slash)
  3. Snatch_DerivePath: whether or not to use a structured path for destination files. If set to false, this will place all files directly in the root of the destination folder. If set to true, it will derive the path from the actual URL like so:

Snatch_Destination/Site URL/Path to File

  1. Snatch_EnableLog: Whether or not to log output to file
  2. Snatch_TimestampLog: Whether or not to name logs with timestamp (essentially rotates the log with each run)
  3. Snatch_LogDirectory: Folder where logs should be written to
  4. Snatch_CalculateSHA256: Calculate the SHA-256 checksum of each file after all are completed. This can potentially slow down the process greatly depending on the file sizes you are downloading.
  5. Snatch_ForceRoot: Ensure the script is running as root, can be disabled for the paranoid.

WARNING: If you choose to disable this, the script will forcibly terminate for trivial things like being unable to create folders or ACLs being incorrect.


snatch's People

Stargazers

Jen Bauer avatar

Watchers

Dom 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.