Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
node-csfd-api
Advanced tools
Tiny NPM library for scraping CSFD
[work in progress]
- Browser + Node.js (SSR)
- TypeScript
via yarn
yarn add node-csfd-api
via npm
npm install node-csfd-api
Get info about this movie
import { csfd } from 'node-csfd-api';
csfd.movie('535121').then((movie) => console.log(movie));
{
title: 'Na špatné straně',
year: '2018',
descriptions: [
'Otupělý policejní veterán Ridgeman (Mel Gibson)...',
'Brett je policajt tesne ...'
],
genres: [ 'Krimi', 'Drama', 'Thriller' ],
type: 'film',
url: 'https://www.csfd.cz/film/535121',
origins: [ 'USA', 'Kanada' ],
overallRating: 3,
otherTitles: [
{ country: 'USA', title: 'Dragged Across Concrete' },
{ country: 'Kanada', title: 'Dragged Across Concrete' },
{ country: 'Slovensko', title: 'Na zlej strane' },
{ country: 'Austrálie', title: 'Dragged Across Concrete' },
{ country: 'Velká Británie', title: 'Dragged Across Concrete' }
],
poster: '//img.csfd.cz/files/images/film/posters/163/579/163579352_bf8737.jpg?h180',
directors: [
{
name: 'S. Craig Zahler',
url: 'https://www.csfd.cz/tvurce/87470-s-craig-zahler/'
}
],
actors: [
{
name: 'Mel Gibson',
url: 'https://www.csfd.cz/tvurce/1-mel-gibson/'
},
...
],
basedOn: [],
writers: [
{
name: 'S. Craig Zahler',
url: 'https://www.csfd.cz/tvurce/87470-s-craig-zahler/'
}
],
music: [
{
name: 'Jeff Herriott',
url: 'https://www.csfd.cz/tvurce/203209-jeff-herriott/'
},
...
],
producers: [
{
name: 'Sefton Fincham',
url: 'https://www.csfd.cz/tvurce/320006-sefton-fincham/'
},
...
]
}
Get all of my ratings
import { csfd } from 'node-csfd-api';
csfd.userRatings('912-bart').then((ratings) => console.log(ratings));
[
{
title: 'David Attenborough: Život na naší planetě',
year: 2020,
type: 'film',
rating: 5,
url: 'https://www.csfd.cz/film/812944-david-attenborough-zivot-na-nasi-planete/',
date: '01.11.2020',
overallRating: 1
},
{
title: 'Coronation',
year: 2020,
type: 'film',
rating: 4,
url: 'https://www.csfd.cz/film/912552-coronation/',
date: '28.10.2020',
overallRating: 1
}
];
Work in progress...
yarn start
You can find and modify it in ./demo.ts
file
yarn demo
I welcome you to customize this according to your needs ;)
Pull requests for any improvements would be great!
If this project have helped you save time please consider making a donation for some 🍺 or 🍵 ;)
I DO NOT STORE ANY DATA. PERIOD.
I physically can't. I have nowhere to store it. I don't even have a server database to store it. So even if Justin Bieber asked nicely to see your data, I wouldn't have anything to show him.
That's why, with CSFD Api, what happens on your device stays on your device till disappear.
Copyright © 2020 Lukas Bartak
Proudly powered by nature 🗻, wind 💨, tea 🍵 and beer 🍺 ;)
All contents are licensed under the MIT license.
FAQs
ČSFD API in JavaScript. Amazing NPM library for scrapping csfd.cz :)
The npm package node-csfd-api receives a total of 121 weekly downloads. As such, node-csfd-api popularity was classified as not popular.
We found that node-csfd-api demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.