reddit_image_downloader

command module
v0.0.0-...-bdb3267 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 3, 2022 License: MIT Imports: 11 Imported by: 0

README

reddit_image_downloader

This is a command line tool that uses a config file to download images from a list of subreddits.

The idea for this project is from a friend, icmpzero and was used to help us better understand writing in Go.

Building

To build, run

$ go build

Usage

Usage of ./reddit_image_downloader:
  -c string
        Location of configuration file to use (default "config.json")

Config

  • subreddits: List of Subreddits to look for images in
  • fileExt: What file type to download
  • downloadPath: Path to download files into
Example
{
  "subreddits": [
    "Wallpapers",
    "battlestations",
    "Aww",
    "Beerwithaview",
    "OldSchoolCool",
    "TheWayWeWere",
    "itookapicture"
  ],
  "fileExt": {
    ".jpg": true,
    ".png": true,
    ".gif": true
  },
  "downloadPath": "/home/ascotti/Downloads"
}

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL