node-csfd-api
Version:
ČSFD API in JavaScript. Amazing NPM library for scrapping csfd.cz :)
12 lines (11 loc) • 723 B
TypeScript
import { HTMLElement } from 'node-html-parser';
import { CSFDColorRating, CSFDFilmTypes } from '../interfaces/global';
import { CSFDCreator } from '../interfaces/movie.interface';
export declare const getType: (el: HTMLElement) => CSFDFilmTypes;
export declare const getTitle: (el: HTMLElement) => string;
export declare const getYear: (el: HTMLElement) => number;
export declare const getUrl: (el: HTMLElement) => string;
export declare const getColorRating: (el: HTMLElement) => CSFDColorRating;
export declare const getPoster: (el: HTMLElement) => string;
export declare const getOrigins: (el: HTMLElement) => string[];
export declare const parsePeople: (el: HTMLElement, type: "directors" | "actors") => CSFDCreator[];