Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

node-csfd-api

Package Overview
Dependencies
Maintainers
1
Versions
104
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

node-csfd-api - npm Package Compare versions

Comparing version 1.6.1 to 1.6.2

4

package.json
{
"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;
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc