Skip to content

amscotti/reddit_image_downloader

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.toml")

Config

  • subreddits: List of Subreddits to look for images in
  • fileExt: What file type to download
  • downloadPath: Path to download files into

Example

# Reddit Image Downloader configuration

# List of subreddits to download images from
subreddits = [
  "Wallpapers",
  "battlestations",
  "Aww",
  "Beerwithaview",
  "OldSchoolCool",
  "TheWayWeWere",
  "itookapicture"
]

# Path where images will be downloaded
downloadPath = "download"

# File extensions to download (true = download, false = ignore)
[fileExt]
".jpg" = true
".png" = true
".gif" = true

About

Golang code that will download images from Reddit

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages