UNPKG
spider-node
Version:
latest (1.1.4-0)
test (1.1.31)
test-plan (1.1.2)
1.1.201
1.1.31
1.1.4-0
1.1.3
1.1.2
1.1.1
1.1.0
1.0.205
1.0.204
1.0.203
1.0.202
1.0.201
1.0.81
1.0.72
1.0.71
1.0.58
1.0.57
1.0.56
1.0.55
1.0.52
1.0.51
1.0.31
1.0.22
1.0.21
1.0.9
1.0.8
1.0.7
1.0.6
1.0.5
1.0.4
1.0.3
1.0.2
1.0.1
1.0.0
0.4.6
0.4.5
0.4.4
0.4.2
0.4.1
0.4.0
0.3.21
0.3.2
0.3.1
0.3.0
0.2.152
0.2.151
0.2.14
0.2.13
0.2.12
0.2.11
0.2.1
0.2.0
0.1.6
0.1.5
0.1.4
0.1.3
0.1.2
0.1.1
0.1.0
0.0.4
爬虫工具,根据传入的配置和规则爬取数据
github.com/weoil/spider-node
weoil/spider-node
spider-node
/
src
/
crawl.ts
10 lines
(9 loc)
•
230 B
text/typescript
View Raw
1
2
3
4
5
6
7
8
9
10
import
Spider
from
'./spider'
;
import
{
ISpider
}
from
'../types'
;
export
class
Crawl
{
public
static
create
(
config
:
ISpider
.
Config
):
Spider
{
const
s =
new
Spider
(config);
return
s; } }
export
default
Crawl
;