Giter Site home page Giter Site logo

xxkfqz / chan-dl Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 2.0 30 KB

Featureful script for downloading media files from imageboards using their API. Supports 4chan, 2ch/dvach, Dobrochan, Tumbach, Lolifox

License: Do What The F*ck You Want To Public License

Python 99.44% Batchfile 0.56%
image-downloader downloader 4chan-downloader dvach 2ch

chan-dl's Introduction

chan-dl.py

Script for downloading media files from imageboards using their API

Supported imageboards

Dependecies

Usage

chan-dl.py [-h] [-o] [-f START_INDEX] [-t END_INDEX] [-d DIR] [-m] [-c]
           [-z] [-Z] [-q] [-s] [-v] [--no-stderr] URL [URL ...]

Download media files from imageboards

Supported imageboards:
 * 4chan
 * 2ch
 * Dobrochan
 * Tumbach
 * Lolifox

positional arguments:
  URL                   url to thread

optional arguments:
  -h, --help            show this help message and exit
  -o, --overwrite       overwrite existing files
                        (does not works with -m)
  -f START_INDEX, --from START_INDEX
                        start of range mediafiles number (default: 1)
  -t END_INDEX, --to END_INDEX
                        end of range mediafiles number (default: none)
  -d DIR, --dir DIR     output directory
  -m, --md5             change filenames to MD5 hash
  -c, --check           check files for duplicating via MD5
                        (like -m option but without renaming)
  -z, --zip             create *.zip archive after downloading
                        (previous one will be removed if exists)
  -Z, --only-zip        delete downloaded files after archiving
                        (includes -z)
  -q, --quiet           do not print anything
  -s, --skip-failed     just skip downloading failed URL instead quit
  -v, --verbose         be a little verbose
  --no-stderr           disable stderr messages (do not disables tracebacks)

Examples

# Just download all pictures and videos to current directory
chan-dl.py http://boards.4chan.org/c/thread/1990691

# Multiple URLs
chan-dl.py boards.4chan.org/w/thread/1565459 2ch.hk/pr/res/1008826.html#1008826

# Create a ZIP archive after download. Put everything at '~/pictures'
chan-dl.py http://boards.4channel.org/c/thread/3475819 -d ~/pictures

# Download only 10-15 files from thread and check them for duplications
chan-dl.py http://boards.4chan.org/c/thread/1990691 -f 10 -t 15 -c

chan-dl's People

Contributors

xxkfqz avatar

Stargazers

 avatar

Watchers

 avatar

Forkers

musiniac heldner

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.