Skip to content

Latest commit

 

History

History

Blog_Image_Finder

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

Script in JS used to get images

About

Blogs are like caffeine for writers for which they always tries to find interesting stuffs(images/quotes/GIFs) to encourage readers to read even a long blog.Now, Blogs are of various genres, so it is very difficult for a writes to get apt images to insert in their blog. So, I've developed a script which is very much easy to use and which can find 20+ images instantly and also provides the link(Unsplash link).

Explanation of code

  • unsplash API is used to fetch all images
  • Async/Await is used to consume promises.
  • Script is dependent on a basic boilerplate HTML file, which displays all the images retrieved by the script.
  • To get link of any image, just click on that, a pop-up/alert window with link will appear.

To run the code

  • Clone the folder
  • Inside the folder open index.html or in some editor you can use live-server to run HTML file.
  • Then search images of which category/genre you want.

Output

image

Made by Piyush Gupta