bartholomej / node-csfd-api Goto Github PK
View Code? Open in Web Editor NEWČSFD API in JavaScript. Amazing NPM library for scrapping csfd.cz :)
ČSFD API in JavaScript. Amazing NPM library for scrapping csfd.cz :)
Would be possible to add IMDb id into the movie detail?
When movie has more descriptions like Ironclad or Matrix Resurrections then descriptions array is empty.
Movies with one description work good and I didn't find any movies with 3 or more descriptions so I can't tell about this case.
Thanks for a wonderful library. I've just used it to successfully deploy a super simple API endpoint on Heroku to use with my personal movie database.
I was wondering if would consider also adding information about the number of ratings?
The API already returns the calculated percentage, but the number of ratings helps you better determine the relevance/significance of the rating.
I looked through your code and considered making a pull request. Unfortunately, I can't write tests and I don't think my code would be up to your standards. Hopefully, it should be quite simple to scrape the information.
Here is the element in question:
<span class="counter">**{NUMBER OF RATINGS}**</span>
Dobrý den,
šlo by to nějak použít pro metadata na Synology VideoStation?
Děkuji
Hello, is there any way to use this for metadata on Synology VideoStation?
Thanks
Eg. Lord of the rings movies have special Length, they have three types of length, normal, directors cut, and special edition. In this case, the duration is NaN.
λ node .\index.js csfd-get 4711 -r
{
id: 4711,
title: 'Pán prstenů: Společenstvo Prstenu',
year: 2001,
duration: NaN,
descriptions: [
Calling csfd.movie(1079)
throws
TypeError: Cannot read properties of undefined (reading 'split')
at getPremieres (...\node_modules\node-csfd-api\helpers\movie.helper.js:230:91)
at MovieScraper.buildMovie (...\node_modules\node-csfd-api\services\movie.service.js:52:56)
at MovieScraper.movie (...\node_modules\node-csfd-api\services\movie.service.js:17:14)
at processTicksAndRejections (node:internal/process/task_queues:96:5) {stack: 'TypeError: Cannot read properties of undefine…ions (node:internal/process/task_queues:96:5)', message: 'Cannot read properties of undefined (reading 'split')'}
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.