Skip to content

Commit 6c4fd09

Browse files
committed
Docs: A new adjustment
1 parent 4747636 commit 6c4fd09

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ x-crawl is a flexible nodejs crawler library. It can crawl pages in batches, net
1717
- **☁️ Crawl SPA** - Batch crawl SPA (Single Page Application) to generate pre-rendered content (ie "SSR" (Server Side Rendering)).
1818
- **⚒️ Controlling Pages** - Headless browsers can submit forms, keystrokes, event actions, generate screenshots of pages, etc.
1919
- **🧾 Capture Record** - Capture and record the crawled results, and highlight them on the console.
20-
- **🦾TypeScript** - Own types, implement complete types through generics.
20+
- **🦾 TypeScript** - Own types, implement complete types through generics.
2121

2222
## Relationship with puppeteer
2323

@@ -112,7 +112,7 @@ Take some pictures of Airbnb hawaii experience and Plus listings automatically e
112112
import xCrawl from 'x-crawl'
113113

114114
// 2.Create a crawler instance
115-
const myXCrawl = xCrawl({ intervalTime: { max: 3000, min: 2000 } })
115+
const myXCrawl = xCrawl({ maxRetry: 3, intervalTime: { max: 3000, min: 2000 } })
116116

117117
// 3.Set the crawling task
118118
/*

assets/en/crawler.png

4.15 KB
Loading

docs/cn.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ x-crawl 是一个灵活的 nodejs 爬虫库。可批量爬取页面、批量网
1717
- **☁️ 爬取 SPA** - 批量爬取 SPA(单页应用程序)生成预渲染内容(即“SSR”(服务器端渲染))。
1818
- **⚒️ 控制页面** - 无头浏览器可以表单提交、键盘输入、事件操作、生成页面的屏幕截图等。
1919
- **🧾 捕获记录** - 对爬取的结果进行捕获记录,并在控制台进行高亮的提醒。
20-
- **🦾TypeScript** - 拥有类型,通过泛型实现完整的类型。
20+
- **🦾 TypeScript** - 拥有类型,通过泛型实现完整的类型。
2121

2222
## 跟 puppeteer 的关系
2323

publish/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ x-crawl is a flexible nodejs crawler library. It can crawl pages in batches, net
1717
- **☁️ Crawl SPA** - Batch crawl SPA (Single Page Application) to generate pre-rendered content (ie "SSR" (Server Side Rendering)).
1818
- **⚒️ Controlling Pages** - Headless browsers can submit forms, keystrokes, event actions, generate screenshots of pages, etc.
1919
- **🧾 Capture Record** - Capture and record the crawled results, and highlight them on the console.
20-
- **🦾TypeScript** - Own types, implement complete types through generics.
20+
- **🦾 TypeScript** - Own types, implement complete types through generics.
2121

2222
## Relationship with puppeteer
2323

@@ -112,7 +112,7 @@ Take some pictures of Airbnb hawaii experience and Plus listings automatically e
112112
import xCrawl from 'x-crawl'
113113

114114
// 2.Create a crawler instance
115-
const myXCrawl = xCrawl({ intervalTime: { max: 3000, min: 2000 } })
115+
const myXCrawl = xCrawl({ maxRetry: 3, intervalTime: { max: 3000, min: 2000 } })
116116

117117
// 3.Set the crawling task
118118
/*

0 commit comments

Comments
 (0)