← back to Abrams Report

scrapers/scrape-wallpaper.js

19 lines

#!/usr/bin/env node
'use strict';
// Runs every 30 min — wallpaper houses only
const { scrapeAllHtml } = require('./scrape-html');
const { CAT } = require('./sources');

async function main() {
  console.log('[wallpaper-watch] Starting wallpaper scrape at', new Date().toISOString());
  const results = await scrapeAllHtml(CAT.WALLPAPER);
  const total = results.reduce((s, r) => s + r.added, 0);
  console.log(`[wallpaper-watch] Done. New wallpaper headlines: ${total}`);
  process.exit(0);
}

main().catch(err => {
  console.error('[wallpaper-watch] Fatal:', err);
  process.exit(1);
});