Skip to content

Commit 89751cd

Browse files
committed
assets
1 parent 015fb32 commit 89751cd

File tree

4 files changed

+3
-3
lines changed

4 files changed

+3
-3
lines changed

assets/crawler-result.png

142 KB
Loading

assets/crawler.png

36 KB
Loading

docs/cn.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ import XCrawl from 'x-crawl'
7272
// 2.创建一个爬虫实例
7373
const myXCrawl = new XCrawl({
7474
timeout: 10000, // 超时时间
75-
intervalTime: { max: 6000, min: 2000 } // 控制请求频率
75+
intervalTime: { max: 3000, min: 2000 } // 控制请求频率
7676
})
7777
7878
// 3.调用 fetchPolling API 开始轮询功能,每隔一天会调用回调函数
@@ -93,7 +93,7 @@ myXCrawl.fetchPolling({ d: 1 }, () => {
9393
})
9494
```
9595
96-
**注意:** 请勿随意爬取,这里只是为了演示如何使用 XCrawl ,并将请求频率控制在 6000ms 到 2000ms 内。
96+
**注意:** 请勿随意爬取,这里只是为了演示如何使用 XCrawl ,并将请求频率控制在 3000ms 到 2000ms 内。
9797
9898
## 核心概念
9999

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"private": true,
33
"name": "x-crawl",
4-
"version": "1.1.1",
4+
"version": "1.1.2",
55
"author": "coderHXL",
66
"description": "XCrawl is a Nodejs multifunctional crawler library.",
77
"license": "MIT",

0 commit comments

Comments
 (0)