Umbau auf postgres 2. step

This commit is contained in:
2024-04-22 22:26:44 +02:00
parent c90d6b72b7
commit 7f0f21b598
77 changed files with 3325 additions and 3066 deletions

View File

@@ -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',