New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

metropolis-api

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

metropolis-api

JSON API for metropolis Cinema located in CM

latest
Source
npmnpm
Version
1.0.2
Version published
Weekly downloads
0
-100%
Maintainers
1
Weekly downloads
 
Created
Source

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

    Keywords

    api

    FAQs

    Package last updated on 28 Apr 2023

    Did you know?

    Socket

    Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

    Install

    Related posts