salt-lick / Imageboard-Image-Scraper

A simple multi-threaded Python application to download images from a thread on 4chan.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Imageboard Image Scraper.
To use, simply pass the thread as a command line argument

Example:
    $ ./imagescraper.py http://boards.4chan.org/g/thread/15898894

    This will create a g/15898894/ directory and download the images to that folder.
    You may also give links to 4chan boards as arguments.

Usage:
  imagescraper.py [-q] [-k] [-t <num>] [-o <dir>] [-l <time>] <links>...
  imagescraper.py -h | --help
  imagescraper.py --version

Arguments:
  <link>    Links to 4chan threads or boards

Options:
  -h, --help           Show this screen.
  --version            Show version.
  -q, --quiet          Do not print messages to screen
  -k, --keep-names     Keep original image names
  -t, --threads <num>  Number of threads to use for multi-threading [default: 32]
  -o, --output <dir>   Where to create the directory hierarchy [default: .]
  -l, --listen <time>  Download images continuiously from given link. Accepts an
                       optional format string where you specify minutes with 'm'
                       and seconds with 's' [example: 1m0s]


I initially don't really plan to work on this very much but I have some ideas, feel free to mail me with ideas for features or bugs at trulses@gmail.com

About

A simple multi-threaded Python application to download images from a thread on 4chan.

License:MIT License


Languages

Language:Python 100.0%