node-csfd-api
Advanced tools
Comparing version 0.6.0 to 0.6.1
@@ -18,1 +18,2 @@ import { CSFDColorRating } from 'interfaces/global'; | ||
export declare const getType: (el: HTMLElement) => string; | ||
export declare const getTags: (el: HTMLElement) => string[]; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.getType = exports.getGroup = exports.parsePeople = exports.getDirectors = exports.getDescriptions = exports.getPoster = exports.getOtherTitles = exports.getYear = exports.getRating = exports.getColorRating = exports.getOrigins = exports.getGenres = exports.getTitle = exports.getId = void 0; | ||
exports.getTags = exports.getType = exports.getGroup = exports.parsePeople = exports.getDirectors = exports.getDescriptions = exports.getPoster = exports.getOtherTitles = exports.getYear = exports.getRating = exports.getColorRating = exports.getOrigins = exports.getGenres = exports.getTitle = exports.getId = void 0; | ||
const global_helper_1 = require("./global.helper"); | ||
@@ -100,1 +100,5 @@ exports.getId = (el) => { | ||
}; | ||
exports.getTags = (el) => { | ||
const tagsRaw = el.querySelectorAll('.tags .content a'); | ||
return tagsRaw.map((elem) => elem.text.trim()); | ||
}; |
@@ -10,2 +10,3 @@ import { CSFDScreening } from './global'; | ||
creators: CSFDCreators; | ||
tags: string[]; | ||
} | ||
@@ -12,0 +13,0 @@ export interface CSFDCreators { |
{ | ||
"name": "node-csfd-api", | ||
"version": "0.6.0", | ||
"version": "0.6.1", | ||
"description": "Simple NPM library for scraping CSFD", | ||
@@ -11,3 +11,3 @@ "main": "./index.js", | ||
"build": "tsc", | ||
"postbuild": "ts-node scripts/dist-prepare", | ||
"postbuild": "npm-prepare-dist", | ||
"tsc": "tsc", | ||
@@ -24,3 +24,3 @@ "demo": "ts-node demo", | ||
"cross-fetch": "^3.0.6", | ||
"node-html-parser": "^1.4.8" | ||
"node-html-parser": "^1.4.9" | ||
}, | ||
@@ -27,0 +27,0 @@ "repository": { |
@@ -42,3 +42,4 @@ "use strict"; | ||
productionDesign: movie_helper_1.getGroup(el, 'Scénografie') | ||
} | ||
}, | ||
tags: movie_helper_1.getTags(el) | ||
}; | ||
@@ -45,0 +46,0 @@ } |
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
24343
449
Updatednode-html-parser@^1.4.9