UNPKG

node-csfd-api-racintom

Version:

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

14 lines (13 loc) 828 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.seasonUrl = exports.searchUrl = 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 searchUrl = (text) => `https://www.csfd.cz/hledat/?q=${encodeURIComponent(text)}`; exports.searchUrl = searchUrl; const seasonUrl = (url) => `https://www.csfd.cz/${url}`; exports.seasonUrl = seasonUrl;