Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions src/core.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,15 @@ export async function crawl(config: Config) {
// browser controlled by the Playwright library.
crawler = new PlaywrightCrawler(
{
// Use the system Chrome instead of the bundled Chromium to avoid
// local crashes seen with the cached Chromium build on this machine.
// Note: this forwards to playwright.chromium.launchPersistentContext
// under the hood, where `channel` is a valid launch option.
launchContext: {
launchOptions: {
channel: "chrome",
},
},
// Use the requestHandler to process each of the crawled pages.
async requestHandler({ request, page, enqueueLinks, log, pushData }) {
const title = await page.title();
Expand Down