UNPKG

online-judge-scraper

Version:

A library to extract information easily from various online judges.

12 lines (11 loc) 436 B
import type { Problem } from '../types/problem.js'; /** * Main function to get problem data from any supported online judge. * Uses the URL domain to quickly identify the appropriate scraper. * * @param url - URL of the problem to fetch * @returns A Promise that resolves to the Problem object * @throws Error if the URL is not supported or scraping fails * */ export declare function getProblem(url: string): Promise<Problem>;