* @param {!Object=} options * @return {!Promise<!HCCrawler>}
(options)
| 66 | * @return {!Promise<!HCCrawler>} |
| 67 | */ |
| 68 | static async connect(options) { |
| 69 | const browser = await Puppeteer.connect(pick(options, CONNECT_OPTIONS)); |
| 70 | const crawler = new HCCrawler(browser, omit(options, CONNECT_OPTIONS)); |
| 71 | await crawler.init(); |
| 72 | return crawler; |
| 73 | } |
| 74 | |
| 75 | /** |
| 76 | * @param {!Object=} options |