UNPKG

node-csfd-api

Version:

ČSFD API in JavaScript. Amazing NPM library for scrapping csfd.cz :)

14 lines (13 loc) 828 B
import { HTMLElement } from 'node-html-parser'; import { CSFDColorRating, CSFDFilmTypes, CSFDStars } from '../interfaces/global'; import { Colors } from '../interfaces/user-ratings.interface'; export declare const getId: (el: HTMLElement) => number; export declare const getUserRating: (el: HTMLElement) => CSFDStars; export declare const getType: (el: HTMLElement) => CSFDFilmTypes; export declare const getTitle: (el: HTMLElement) => string; export declare const getYear: (el: HTMLElement) => number; export declare const getColorRating: (el: HTMLElement) => CSFDColorRating; export declare const getDate: (el: HTMLElement) => string; export declare const getUrl: (el: HTMLElement) => string; export declare const parseColor: (quality: Colors) => CSFDColorRating; export declare const sleep: (ms: number) => Promise<unknown>;