This application can do following tasks:
- Creates a "memes" folder if it doesnt exist
- Fetching and parsing HTML
- Download the first 10 images from the website below, name them and save them into the "memes" folder.
Website used for downloading images
For this application, I used following packages/modules:
- 'fs' - File System - for handling file operations
- 'https' - for https requests
- 'path' - for file paths
- Axios - for https requests
- node-html-parser - for parsing html content
Be sure to install Axios and node-html-parser with the following:
npm install axios node-html-parser
Simply run the following in the terminal:
node index.js