A web scraper for extracting information from web pages easily, the code contains the url to https://www.punchng.com
To get started, simply run npm install
in order to install the necessary packages to your local machine and generate a package.json
file
In order to use this web scraper, get the website url, and then target the information you are looking for in your developer tools, e.g the link, image or text you want. target using cheerio.load and then save it's value to a variable, after wards create an array that you would push the items of the scrape into and then run the code
node index.js > result.txt
to save the extracted data to a text file.😁