@tricoteuses/senat
Version:
Handle French Sénat's open data
19 lines (18 loc) • 766 B
TypeScript
import * as cheerio from "cheerio";
import { CompteRendu } from "../types/compte_rendu";
import { Reunion } from "../types/agenda";
export declare function getRemainingTextAfterSpeakerHeader($: cheerio.CheerioAPI, $p: cheerio.Cheerio<any>): string;
export type DaySection = {
title: string;
$start: cheerio.Cheerio<any>;
time?: string;
};
export declare function cleanTitle(t: string): string;
export declare function extractDayH3Sections($: cheerio.CheerioAPI, dateISO: string): DaySection[];
export declare function parseCommissionCRSectionFromDom($: cheerio.CheerioAPI, htmlFilePath: string, opts: {
dateISO: string;
hourShort: string | null;
organe?: string | null;
section: DaySection;
matched?: Reunion;
}): CompteRendu | null;