js-harvester
Version:
Harvester is a lightweight and highly optimized javascript library for extracting data from the DOM tree. It supports extraction of tag texts with specified types and attributes. it's tiny and has no dependencies and also works with Puppeteer
10 lines (7 loc) • 323 B
JavaScript
import { chromium } from 'playwright'
export const HARVESTER_PATH = './node_modules/js-harvester/src/harvester.js'
export async function open () {
const browser = await chromium.launch({ headless: false })
const ctx = await browser.newContext({ userAgent: 'Chrome/111.0.0.0 Safari/537.36' })
return ctx.newPage()
}