node-csfd-api
Version:
ČSFD API in JavaScript. Amazing NPM library for scrapping csfd.cz :)
19 lines (18 loc) • 969 B
TypeScript
import { HTMLElement } from 'node-html-parser';
import { CSFDColorRating } from '../interfaces/global';
import { CSFDCinemaGroupedFilmsByDate, CSFDCinemaMeta, CSFDCinemaMovie } from './../interfaces/cinema.interface';
export declare const getColorRating: (el: HTMLElement) => CSFDColorRating;
export declare const getCinemaId: (el: HTMLElement | null) => number;
export declare const getId: (url: string) => number | null;
export declare const getCoords: (el: HTMLElement | null) => {
lat: number;
lng: number;
} | null;
export declare const getCinemaUrl: (el: HTMLElement | null) => string;
export declare const parseCinema: (el: HTMLElement | null) => {
city: string;
name: string;
};
export declare const getGroupedFilmsByDate: (el: HTMLElement | null) => CSFDCinemaGroupedFilmsByDate[];
export declare const getFilms: (date: string, el: HTMLElement | null) => CSFDCinemaMovie[];
export declare const parseMeta: (meta: string[]) => CSFDCinemaMeta[];