skip to navigation
skip to content

Chandere2 2.4.1

An asynchronous image/file downloader and thread archiver for Futaba-styled imageboards, such as 4chan and 8chan.

![Chandere2]( "Chandere2")
## A command-line utility programmed and maintained by [Jakob.](
An asynchronous image downloader and thread archiver for Futaba-styled imageboards, such as 4chan and 8chan.

Chandere2 is a complete rewrite of Chandere using asynchronous concurrency. Its goals are to be fast and as universal as possible.

Chandere2 is free software, licensed under the [GNU General Public License.](

[![Build Status](]( [![PyPI Version](]( [![AUR Version](]( [![License](](

Primary Features

* Several boards and threads can be scraped from simutaneously.
* Archives to many formats, including plaintext and SQL.
* A simple but powerful interface for filtering posts, with support for wildcard syntax and regular expressions.
* Countless imageboards are supported out of the box. New support is added nearly every update.


**Arch Linux** users are able to install Chandere2 using Pacman. It is packaged in the [AUR.](

$ makepkg -si

If you are running a distribution for which Chandere2 is not packaged, or are not running Linux, the most reliable way to install Chandere2 is through Pip.

$ # It is recommended that you use the latest version of pip and setuptools when installing Chandere2.
# pip install --upgrade pip setuptools
# pip install --upgrade chandere2

Alternatively, in the repository's root directory can be used. This is not recommended.

# python install

If Chandere2 is installed with Pip or, you will have to manually move the manpages to your manpath.

$ make doc
# cp docs/*.1.gz /usr/share/man/man1 # The destination path may be different on your system.


Chandere2 has several mode of operations. When no particular mode is specified, the default is to try to connect to the specified targets and print the response headers.

$ chandere2 /g/

More than one target can be specified, as well.

$ chandere2 /g/ /3

Targets can also refer to a thread, rather than an entire board if a thread ID is appended to the board initial.

$ chandere2 /g/51971506

Now with the basics of specifying targets, we can get into more useful modes of operation. To download every file in a board or thread, use the "-d" or "--download" argument.

$ chandere2 /g/51971506 -d

That will download everything into the current working directory, though, which is often not desired. The output path with the "-o" or "--output" parameter.

$ chandere2 /g/51971506 -d -o Stallman

All of these examples will scrape from 4chan. An alternate imageboard can be specified with "-i". Available imageboard aliases are listed when Chandere2 is run with "--list-imageboards".

$ chandere2 --list-imageboards
Available Imageboard Aliases: lainchan, 4chan
$ chandere2 /cyb/ -d -o Cyberpunk -i lainchan

Post filtering is by far the least intuitive feature to use, though it should feel somewhat familiar to anyone who has used 4chan's built in filtering system. Rather than being limited to five post fields, any field in the json output can be filtered. The following example will only download WEBM and MP4 videos, and will ignore files with the MD5 checksum of "Q0GnSJ3ej7ikA3dfYiXJMA==".

$ chandere2 /gif/9463458 -d --filter ext:/[!(.webm)(.mp4)]/ md5:Q0GnSJ3ej7ikA3dfYiXJMA==

While filter patterns can be as simple as the md5sum in the example above, there are several features to make filtering more useful. When several words or phrases are joined with spaces, the filtering engine will check to see if the pattern occurs in any order. Double quotes can be used to force the order of a match; for example, '--filter com:"that feel when"' will not filter "when that feel" in a comment body. Regular expressions can be used as long as the regexp is enclosed in forward slashes.

File Type Py Version Uploaded on Size
Chandere2-2.4.1-py3-none-any.whl (md5) Python Wheel 3.6 2017-06-22 20KB
Chandere2-2.4.1.tar.gz (md5) Source 2017-06-22 28KB