metropolis-api

1.0.2 • Public • Published

metropolis-api

Simple API to communicate with Metropolis Cinema's website.

npm version License: MIT

Summary

1. What does it do?

This package will scrap the Metropolis Cinema's website and return :

  • The list of movies
  • One movie's details
  • 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);

    Back to summary.

    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: ''
        }
    ]

    Readme

    Keywords

    Package Sidebar

    Install

    npm i metropolis-api

    Weekly Downloads

    3

    Version

    1.0.2

    License

    ISC

    Unpacked Size

    4.72 kB

    Total Files

    3

    Last publish

    Collaborators

    • maelstorm176