summaryrefslogtreecommitdiff
path: root/app/scrapers/base.ts
blob: 512fcbb3e29cfdfd9adbdf0dfa2a5a266a23ad5a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
import type { EventInput } from "~/lib/db.server";

export interface VenueMeta {
  id: string;
  name: string;
  url: string;
  area: string;
}

export interface Scraper {
  venue: VenueMeta;
  /** Fetch events from the venue's website. Returns event inputs ready for upsert. */
  scrape(): Promise<EventInput[]>;
}