Skip to content

MoriTanosuke/reddit-wallpaper-downloader

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

reddit-wallpaper-downloader

Build Status

Simple java application to download images from reddit posts.

If you want an alternative for bash, here you go:

wget -q -O - https://www.reddit.com/r/EarthPorn/top.json |grep -o -e '"url": "[^\"]*.[jpg|png]"'|awk -F: '{print $2":"$3}'|xargs wget

Compiling

Make sure you have Maven installed. Then run the following command in the repository directory:

mvn clean package

Usage

After compiling, run the application as follows:

java -jar target\reddit-wallpaper-downloader-jar-with-dependencies.jar C:\Path\To\Your\Picture\Directory https://www.reddit.com/r/EarthPorn