A JavaScript package for fetching reddit wallpapers.
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
- Usage
- Sample Response
- Options
- Supported subreddits
- Features missing
- License
Install via NPM
npm install reddit-wallpaper-links
const redditWallpaperLinks = require("reddit-wallpaper-links")
redditWallpaperLinks.GetPosts({
subreddit:'AnimeWallpaperSFW',
limit:5,
flair: 'Mobile',
}).then(result => {console.log(result)})
[
{
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'
}
]
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' |
- r/AnimeWallpaperSFW
- r/AnimeWallpapersSFW
- [ ] 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
Reddit Image Knight is licensed under the MIT License.