GithubHelp home page GithubHelp logo

bartholomej / node-csfd-api Goto Github PK

View Code? Open in Web Editor NEW
23.0 3.0 2.0 1.59 MB

ČSFD API in JavaScript. Amazing NPM library for scrapping csfd.cz :)

TypeScript 99.99% Shell 0.01%
csfd csfd-api movie ratings javascript typescript imdb film hollywood nodejs

node-csfd-api's People

Contributors

bartholomej avatar dependabot[bot] avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

node-csfd-api's Issues

Feature request: Add number of ratings

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>

CleanShot 2021-11-16 at 19 27 44@2x

Synology Video Station

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

Duration is NaN on some movies

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: [

csfd.movie(1079) throws TypeError: Cannot read properties of undefined (reading 'split')

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')'}

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.