node-csfd-api
Advanced tools
Comparing version 1.6.1 to 1.6.2
{ | ||
"name": "node-csfd-api", | ||
"version": "1.6.1", | ||
"version": "1.6.2", | ||
"description": "Simple NPM library for scraping CSFD", | ||
@@ -25,3 +25,3 @@ "main": "./index.js", | ||
"cross-fetch": "^3.1.4", | ||
"node-html-parser": "^3.1.4" | ||
"node-html-parser": "^3.3.5" | ||
}, | ||
@@ -28,0 +28,0 @@ "repository": { |
@@ -23,4 +23,5 @@ "use strict"; | ||
if (config === null || config === void 0 ? void 0 : config.allPages) { | ||
console.log('User', user, url); | ||
console.log('Fetching all pages', pages); | ||
for (let i = 2; i <= 4; i++) { | ||
for (let i = 2; i <= pages; i++) { | ||
console.log('Fetching page', i, 'out of', pages, '...'); | ||
@@ -27,0 +28,0 @@ const url = vars_1.userRatingsUrl(user, i); |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.searchUrl = exports.movieUrl = exports.userRatingsUrl = void 0; | ||
const userRatingsUrl = (user, page) => `https://new.csfd.cz/uzivatel/${encodeURIComponent(user)}/hodnoceni/${page ? '?page=' + page : ''}`; | ||
const userRatingsUrl = (user, page) => `https://www.csfd.cz/uzivatel/${encodeURIComponent(user)}/hodnoceni/${page ? '?page=' + page : ''}`; | ||
exports.userRatingsUrl = userRatingsUrl; | ||
const movieUrl = (movie) => `https://new.csfd.cz/film/${encodeURIComponent(movie)}`; | ||
const movieUrl = (movie) => `https://www.csfd.cz/film/${encodeURIComponent(movie)}`; | ||
exports.movieUrl = movieUrl; | ||
const searchUrl = (text) => `https://new.csfd.cz/hledat/?q=${encodeURIComponent(text)}`; | ||
const searchUrl = (text) => `https://www.csfd.cz/hledat/?q=${encodeURIComponent(text)}`; | ||
exports.searchUrl = searchUrl; |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
47171
866
Updatednode-html-parser@^3.3.5