fix: import crawlee
This commit is contained in:
@@ -1,3 +1,5 @@
|
|||||||
|
import { PlaywrightCrawler } from 'crawlee';
|
||||||
|
|
||||||
async function scrapeData(url, selectors, waitForSeconds = 2) {
|
async function scrapeData(url, selectors, waitForSeconds = 2) {
|
||||||
const crawler = new PlaywrightCrawler({
|
const crawler = new PlaywrightCrawler({
|
||||||
requestHandler: async ({ page }) => {
|
requestHandler: async ({ page }) => {
|
||||||
|
|||||||
Reference in New Issue
Block a user