A scraper in node.js that will fetch all internal urls from all pages of medium.com (recursively) and save them into a file.
- NodeJS
- cheerio - Fast, flexible & lean implementation of core jQuery designed specifically for the server.
Node v12.1.0
NPM 6.8.0
npm install
const { getLink } = require('./getLinks')
const links = new getLink(); // optional path parameter with default directory as the base folder
links.getlinks('https://medium.com')npm start