Umbau auf postgres 2. step
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
// import puppeteer, { Browser, ElementHandle, Page } from 'puppeteer-core';
|
||||
import puppeteer, { Browser, ElementHandle, Page } from 'puppeteer';
|
||||
import { BusinessListing } from "../common-models/src/main.model"
|
||||
|
||||
import currency from 'currency.js';
|
||||
import fs from 'fs-extra'
|
||||
|
||||
@@ -51,7 +51,7 @@ async function getParentElementText(elementHandle: ElementHandle<Element> | null
|
||||
return textContent?(textContent.length<2?textContent.join():textContent):null
|
||||
}
|
||||
|
||||
async function extractListingData(page: Page): Promise<BusinessListing | null> {
|
||||
async function extractListingData(page: Page): Promise<any | null> {
|
||||
const labels = {
|
||||
summaryLabel: 'Summary',
|
||||
descriptionLabel: 'Description',
|
||||
|
||||
Reference in New Issue
Block a user