Skip to content

Latest commit

 

History

10 提交

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 

仓库 files navigation

WebCrawler

A simple web crawler built using Node.js, Axios, and Cheerio.

Table of Contents

Installation

  1. Clone the repository:

    git clone https://github.com/yourusername/WebCrawler.git
    cd WebCrawler
  2. Install the dependencies:

    npm install

Usage

To start the web crawler, run the following command:

node index.js

The crawler will start from the URL specified in the startUrl variable and will crawl up to the depth specified in the maxDepth variable. The results will be saved in results.json.

Configuration

You can configure the following variables in the index.js file:

  • startUrl: The URL to start crawling from.
  • maxDepth: The maximum depth to crawl.

Contributing

Contributions are welcome! Please open an issue or submit a pull request.

关于

A simple web crawler built using Node.js, Axios, and Cheerio. This tool crawls web pages starting from a specified URL and collects links up to a specified depth. The results are saved in a JSON file.

Topics

Resources

Stars

1 star

关注者

1 watching

复刻s

发布

贡献者

Languages