Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/backendtea/dlchan

Download all pictures of your favorite image board
https://github.com/backendtea/dlchan

4chan downloader golang

Last synced: 17 days ago
JSON representation

Download all pictures of your favorite image board

Awesome Lists containing this project

README

        

# DL chan

Downloads all images from a specified 4chan board.

## Instalation

```bash
$ go get github.com/backendtea/dlchan
```
## Usage

```bash
$ dlchan --board=v --out=./output
```

Options:
* `--board` (Required) Specifies the board to be downloaded from
* `--out` (Optional) Output directory where files will go, defaults to `.`
* `--thread` (Optional) Download only a specific thread

This will create a folde named `v` inside the `./output` folder, and save all images in that folder.
Images are named as they are on the website, which means that the unix timestap of when they were posted is the filename

## Why

This was mostly made to get a bit of a grip on Golang, as the following has to be done:

* Check command flags
* Access a JSON API
* Retrieve some values
* Check if files/directories exist
* Download images
* Save those to the filesystem