Skip to content

Latest commit

 

History

History
30 lines (24 loc) · 1003 Bytes

README.md

File metadata and controls

30 lines (24 loc) · 1003 Bytes

Random Woof Generator

new random woofs every day!

Summary

Returns url of image randomly from subreddits sorted by new

  • This project started from modifying fetchSamoyeds into my taste
  • Main purpose of the project is to get new fresh dog pictures, but I guess it can be used in any subreddits, not only dogs!
  • demo webiste

from 2021.08.18 - 19.


Tech

  • Javascript
  • node.js

Prerequisites

  • npm

    npm install node-fetch  
    

Key Features

  • get URL of image

    • fetch JSON from the subreddits sorted by new (reddit API document)
    • generateRandomInteger function for random objects
    • post_hint attribute helped me to determine whether the post is only image or not

ezgif com-gif-maker (6)