MCPcopy
hub / github.com/yujiosaka/headless-chrome-crawler / connect

Method connect

lib/hccrawler.js:68–73  ·  view source on GitHub ↗

* @param {!Object=} options * @return {!Promise<!HCCrawler>}

(options)

Source from the content-addressed store, hash-verified

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

Callers 1

index.test.jsFile · 0.80

Calls 1

initMethod · 0.95

Tested by

no test coverage detected