Git Product home page Git Product logo

faparser's People

Contributors

aespinilla avatar javigaralva avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

faparser's Issues

NPM versión 1.0.0

Hola.
En NPM está la versión 1.0.0, que tiene el bug de los directores.

Un saludo y muchas gracias por este gran paquete.

Issue with cheerio

Hello,

I've been using your package for some time now but it recently (not sure exactly when in the last X months) stopped working.

Seems to be something due with this line when submitting the following request:

{
    query: "the matrix",
    lang: 'uk',
    type: fa.TITLE,
    start: 0,
  }

the error received is:

TypeError: Cannot read property 'filter' of undefined
    at .../src/node_modules/faparser/node_modules/cheerio/lib/api/traversing.js:30:42
    at Array.reduce (<anonymous>)
    at module.exports.exports.find (.../src/node_modules/faparser/node_modules/cheerio/lib/api/traversing.js:29:30)
    at Object.parseSearch (.../src/node_modules/faparser/parser.js:233:17)
    at .../src/node_modules/faparser/faparser.js:24:35
    ....

It was working on your version 1.0.6 which uses cheerio 1.0.0-rc.3 but stopped with 1.0.8 that is using cheerio 1.0.0-rc.5.

I've never used cheerio that it's hard for me to go deeper and find what's wrong.
Appreciate the feedack!

Cheers
Joel

Redirect not supported

Hello again :-)

I see you changed the deprecated request package for bent. This had the unfortunate effect of not supporting redirects anymore.

A search like this: https://www.filmaffinity.com/uk/search.php?stype=title&stext=alien%20tv&from=0&orderby=year that used to be supported and parsed by your package now fails with the following:

{
  code: 303,
  url: 'https://www.filmaffinity.com/uk/search.php?stype=title&stext=alien%20tv&from=0&orderby=year',
  error: 'See Other'
}

Unfortunately, I couldn't see options for bent to support redirects.

There are other good packages out there though and I'm myself using quite a lot superagent that supports redirects.

Would it possible to make that change?

Cheers
Joel

Results type

Hello,

I noticed that some ratings returned under the following string format --. I can't know for sure if this was already the case with the previous version.

Also, the prop votes can return an empty string (see image below).

I would suggest having an aligned way of dealing with empty data by passing null. This makes it much easier to post process and avoid having some kind of mapping for each property.

image

Cheers
Joel

Deactivate logger

Hello,

Would it be possible to pass in a config option such as log: false in order to deactivate the logging going on inside of this module?

Many thanks,
Joel

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.