cinemeta.js
v1.0.0
Published
A Simple Name To IMDB Finder based on cinemeta
Downloads
10
Maintainers
Readme
Cinemeta.js
Fetch imdb Data with only the name on cinemeta
Usage
Search
- Importing Package
const cinemeta = require("cinemeta.js")
- Searching Movies/Series
cinemeta.search("Interstellar").then(data =>{
console.log(data)
})
/*
Expected Output
[
{
_id: '53677f23847ccc8123a1d0bd',
imdb_id: 'tt0816692',
name: 'Interstellar',
type: 'movie',
year: '2014'
},
{
_id: '5ab2308653336c1ba83785a2',
imdb_id: 'tt4172224',
type: 'movie',
name: "Interstellar: Nolan's Odyssey",
year: '2014'
},
{
_id: '5518e057cc9eee85bb52dc70',
imdb_id: 'tt4415360',
name: 'The Science of Interstellar',
year: '2015',
type: 'movie'
}
]
*/
- Searching Only Movies
cinemeta.searchMovie("Inception").then(got =>{
console.log(got)
})
- Searching Only Series
cinemeta.searchSeries("The Bear").then(got =>{
console.log(got)
})
Searching on the basis of the year
- Searching Movies/Series
cinemeta.searchOTBOYear("2023").then(data =>{
console.log(data)
})
- Searching Only Movies
cinemeta.searchOTBOYearMovie("2023").then(got =>{
console.log(got)
})
- Searching Only Series
cinemeta.searchOTBOYearSeries("2023").then(got =>{
console.log(got)
})
Random Movie/Series
- Random output Movies/Series
cinemeta.random().then(data =>{
console.log(data)
})
- Random output Only Movies
cinemeta.random("2023").then(got =>{
console.log(got)
})
- Random output Only Series
cinemeta.random("2023").then(got =>{
console.log(got)
})