Socket
Socket
Sign inDemoInstall

reddit-api-image-getter

Package Overview
Dependencies
4
Maintainers
1
Versions
13
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    reddit-api-image-getter

Gets images of a Subreddit and can optionally save them.


Version published
Weekly downloads
1
decreased by-92.86%
Maintainers
1
Created
Weekly downloads
 

Readme

Source

Reddit API Image Getter

Install

npm i reddit-api-image-getter --save

Example

// example
redditImageGetter = require('reddit-api-image-getter')

const path = require('path')

loader = new redditImageGetter()

loader.getHotImagesOfSubReddit('ProgrammerHumor').then(function (result) {
  for (imageEntry of result) {
    loader.saveRedditImageEntryToDisk(imageEntry, path.resolve(__dirname, 'images'))
  }
}).catch(function (error) {
  console.log(error)
})

Inspiration

go crazy, send the pictures to your telegram via a bot (using a bot) and make your day a happy day :tada:

Keywords

FAQs

Last updated on 12 Jan 2020

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc