Giter VIP home page Giter VIP logo

xkcdown's Introduction

xkcdown

A downloader for xkcd.

Quickstart (download all comics)

git clone git://github.com/alexcoplan/xkcdown.git
cd xkcdown
bundle
ruby xkcdown.rb
open images

Usage

ruby xkcdown.rb [id] [range] [options] [directory]

range must be in the format x-y where x and y are integers e.g. (2-34) and denotes the range of comic IDs to download. id must be an integer, and denotes a single comic ID to download.

Options are denoted by a hyphen followed by a list of options, e.g. -it or -i -t.

  • The option -i tells xkcdown to name files using the ID of the comic (default).
  • The option -t tells xkcdown to name files using the name of the remote image.
  • Both options (-it) will name files in the format "id name".

Any argument that does not match any of these expected formats (range, id or option) will be assumed to be the directory name in which you wish to store the images, and xkcdown will attempt to create this directory if it does not exist. By default, the directory name is images.

All arguments are optional, the order of arguments does not matter, but if multiple arguments conflict with each other (e.g. range and ID arguments), the last argument should override the earlier conflicting arguments.

If no range or ID is provided, xkcdown will attempt to download all comics.

xkcdown's People

Contributors

alexcoplan avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Forkers

ashishnamdev

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.