reddit-wallpaper-links

1.0.22 • Public • Published

Reddit Wallpaper Links

A JavaScript package for fetching reddit wallpapers.

Github


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.

Package Sidebar

Install

npm i reddit-wallpaper-links

Weekly Downloads

2

Version

1.0.22

License

MIT

Unpacked Size

5.67 kB

Total Files

4

Last publish

Collaborators

  • knight2056