1.1.1 • Published 3 years ago

faparser v1.1.1

Weekly downloads
10
License
MIT
Repository
github
Last release
3 years ago

FAparser

Npm library for parse films info from Filmaffinity

Try or use the REST API

FARest API - REST API for Filmaffinity

Getting Started

Install npm dependency

npm install faparser --save

Usage

There are three methods which will response a promise with an object or an array of object

//Init
var faparser = require('faparser')

faparser.film( object )

Return a promise with a film full data object (with images and films) or error if have one

faparser.film({ id: 908768, lang: 'es'}).then(function(film){
    console.log(film)
}).catch(function(e){
    console.log(e)
})

faparser.preview( object )

Return a promise with a film result data object (without images and films) or error if have one

faparser.preview({id: 632559, lang: 'es'}).then(function(result){
    console.log(result)
}).catch(function(e){
    console.log(e)
})

faparser.search( object )

Return a promise with an array of result data object or error if have one

faparser.search({query:'spiderman',lang:'es',type: faparser.TITLE, start:0}).then(function(result){
    console.log(result)
}).catch(function(e){
    console.log(e)
})

Extra

Each actor, director or genre contains a request object. This object can send to faparser.search for get results.

Author

  • Alberto Espinilla
1.1.1

3 years ago

1.1.0

3 years ago

1.0.9

3 years ago

1.0.8

3 years ago

1.0.6

4 years ago

1.0.5

4 years ago

1.0.4

5 years ago

1.0.2

5 years ago

1.0.1

6 years ago

1.0.0

7 years ago