10 lines
601 B
JavaScript
10 lines
601 B
JavaScript
// Adapter-Vorlage. Pro Händler implementieren: meta, products, fetchProduct, fetchStores.
|
|
// Elektronikmärkte (MediaMarkt/Saturn/expert/Euronics) sind teils client-rendered →
|
|
// JSON-Endpoint (oft "/api/..../availability?storeId=") via Netzwerk-Capture nutzen,
|
|
// sonst Headless (Playwright) im Cron-Container.
|
|
const UA = 'KuehlfinderBot/0.1 (+https://kuehlfinder.de/bot)';
|
|
export const meta = { id: 'TEMPLATE', name: 'TEMPLATE', kind: 'elektro' };
|
|
export const products = {};
|
|
export async function fetchProduct(productId, ctx) { return null; }
|
|
export async function fetchStores() { return []; }
|