Giter Site home page Giter Site logo

imdb-scrapi's Introduction

IMDb scrAPI

Build Status

A minimal API for getting data off of IMDb using Puppeteer.

Can be served from the CLI or integrated into an existing node application.

I created this application because of a use case where I wanted to be able to get movie/tv related information periodically without needing an API key. This solution is slow, but suits my needs.

Endpoints

Method Endpoint Body Function Description
POST /search query: string (required)
type: "movies", "tv", "episode" (optional)
queryImdb Executes a search query on IMDb and returns the results it gets.
POST /tv/seasons imdbId: string (required) getSeasons Returns an array with a number for each season it can find on IMDb. Will throw an error when the passed idmbId does not belong to a TV Show.
POST /tv/episodes/all imdbId: string (required) getAllEpisodes Gets a list of all known episodes for this TV Show
POST /tv/episodes/season imdbId: string (required)
season: number (required)
getEpisodesForSeason Gets a list of all episodes for the given season of TV Show
POST /tv/episodes/latest imdbId: string (required) getMostRecentEpisode Gets the most recently aired episode for this TV Show
POST /tv/episodes/released imdbId: string (required) getAllReleasedEpisodes Gets all released episodes for a TV SHow
POST /tv/episodes/upcoming imdbId: string (required) getUpcomingEpisode Gets the upcoming episode for this TV Show (if any are found)

CLI

Installation

NPM:

npm i -g imdb-scrapi

Yarn:

yarn add -g imdb-scrapi

Usage

Serve the API

imdb-scrapi serve

Options

Options set as CLI arguments will take precedent over options specified in the config.json.

Option Description Type Default
--port, -p The port the application will listen to number 5000

As a module

Installation

NPM:

npm i imdb-scrapi

Yarn:

yarn add imdb-scrapi

Implement in your own project

The following methods are available for you to bind to your own routes or use elsewhere in your project.

imdb-scrapi's People

Contributors

superschek avatar dependabot[bot] avatar

Watchers

James Cloos avatar  avatar

Forkers

vj-creation

imdb-scrapi's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.