UNPKG

node-csfd-api

Version:

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

16 lines (15 loc) 898 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.searchUrl = exports.cinemasUrl = exports.creatorUrl = exports.movieUrl = exports.userRatingsUrl = void 0; const userRatingsUrl = (user, page) => `https://www.csfd.cz/uzivatel/${encodeURIComponent(user)}/hodnoceni/${page ? '?page=' + page : ''}`; exports.userRatingsUrl = userRatingsUrl; const movieUrl = (movie) => `https://www.csfd.cz/film/${encodeURIComponent(movie)}/prehled/`; exports.movieUrl = movieUrl; const creatorUrl = (creator) => `https://www.csfd.cz/tvurce/${encodeURIComponent(creator)}`; exports.creatorUrl = creatorUrl; const cinemasUrl = (district, period) => { return `https://www.csfd.cz/kino/?period=${period}&district=${district}`; }; exports.cinemasUrl = cinemasUrl; const searchUrl = (text) => `https://www.csfd.cz/hledat/?q=${encodeURIComponent(text)}`; exports.searchUrl = searchUrl;