metropolis-api
v1.0.2
Published
JSON API for metropolis Cinema located in CM
Downloads
5
Readme
metropolis-api
Simple API to communicate with Metropolis Cinema's website.
Summary
1. What does it do?
This package will scrap the Metropolis Cinema's website and return :
2. Installation
2.1 NPM
$ npm install metropolis-api
2.2 Yarn
$ yarn add metropolis-api
3. Usage
import { getMovies } from 'metropolis-api'
const movies = await getMovies(); // Get the list of movies currently playing
console.log(movies);
4. Example output
[
{
id: '383926',
title: '10 jours encore sans maman',
duration: 96,
genres: [ 'Comédie' ],
poster: 'https://fr.web.img5.acsta.net/r_110_0/pictures/23/01/18/12/02/4822931.jpg',
restriction: ''
},
{
id: '559572',
title: 'Champion (Metropolitan Opera)',
duration: 200,
genres: [ 'Opera' ],
poster: 'https://fr.web.img6.acsta.net/r_110_0/pictures/22/04/22/11/34/1590806.jpg',
restriction: ''
},
{
id: '572384',
title: 'Contes de Printemps',
duration: 47,
genres: [ 'Animation', 'Famille' ],
poster: 'https://fr.web.img6.acsta.net/r_110_0/pictures/22/12/22/12/25/2339378.jpg',
restriction: ''
}
]