scrape
This is a simple Node.js script that fetches the HTML content of a specified website using the node-fetch
module.
Installation
- Make sure you have Node.js installed on your system.
- Clone this repository or download the
scrape.js
file. - Install dependencies by running
npm install
in the project directory.
Usage
To use the script, run the following command in your terminal:
node scrape.js <url>
Replace <url>
with the URL of the website you want to scrape. For example:
node scrape.js https://www.example.com
The script will fetch the HTML content of the specified website and print it to the console.
Dependencies
License
This project is licensed under the MIT License - see the LICENSE file for details.