UNPKG

@35iter/spider-core

Version:

使用 puppetter-cluster 的爬虫工具。

9 lines (8 loc) 323 B
export declare const sleep: (s: number) => Promise<"awake">; /** * * @param check 检查方法,可以返回 promise 或者 boolean * @param timeout 检查超时时间,默认 10 秒钟, * @returns */ export declare function runCheck(check: () => Promise<boolean> | boolean, timeout?: number): Promise<undefined>;