1.0.22 • Published 2 years ago
reddit-wallpaper-links v1.0.22
Reddit Wallpaper Links is a JavaScript package that can fetch bulk wallpapers. Supports node.
- Bulk wallpapers
- Lightweight <20KB
The code is based on Reddit Image Fetcher
Table of contents
Installation
Install via NPM
npm install reddit-wallpaper-links
Usage
const redditWallpaperLinks = require("reddit-wallpaper-links")
redditWallpaperLinks.GetPosts({
subreddit:'AnimeWallpaperSFW',
limit:5,
flair: 'Mobile',
}).then(result => {console.log(result)})
Sample Response
[
{
author: 'JomarXXV',
url: 'https://i.redd.it/3qiyu003pbs81.png',
source: 'AnimeWallpapersSFW',
type: 'Mobile'
},
{
author: 'seyjer',
url: 'https://i.redd.it/lbucqqw3obs81.png',
source: 'AnimeWallpapersSFW',
type: 'Mobile'
},
{
author: 'JomarXXV',
url: 'https://i.redd.it/2fmvc43365s81.png',
source: 'AnimeWallpapersSFW',
type: 'Mobile'
}
]
Options
Property | Type | Description | Default |
---|---|---|---|
subreddit | string | Name of the subreddit. | AnimeWallpapersSFW |
limit | number | How many images to get. Max is 50 | 3 |
flair | string | 'Mobile' | 'Mobile' |
Supported subreddits
- r/AnimeWallpaperSFW
- r/AnimeWallpapersSFW
Features missing
- get it working on desktop flair as well
- get more detail about posts
- add filters to the posts
- get more than 100 posts
- work on other subreddits
License
Reddit Image Knight is licensed under the MIT License.