This script can be used to scrape links from any number of input webpages and output all of the links into a text file.
Usage:
- Paste a list of links from where you want to scrape into the input text file. Each link must be separated by a line-break.
- Run the application passing the selector as a parameter
Example:node index.js ".post > h2 > a"
- Output text file should have a list of all links scraped from each of the input files