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

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

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