box-office-mojo-movie-gross

0.3.3 • Public • Published

box-office-mojo-movie-gross

Get the gross of a Box Office Mojo's movie via its HTML.

npm version Build Status Test Coverage

Install

npm install --save box-office-mojo-movie-gross

Usage

var boxOfficeMojoGross = require('box-office-mojo-movie-gross');
var pulpFictionHTML = '<tr><td><font>Domestic Total Gross: <b>$107,928,762</b></font>';
 
boxOfficeMojoGross(pulpFictionHTML); // 107928762

API

boxOfficeMojoGross(input)

Returns the gross of the Box Office Mojo's movie.

input

Type: string

The full (or partial) HTML of a movie as presented in Box Office Mojo.

Example: Pulp Fiction's page in Box Office Mojo

License

MIT © Alejandro Beltrán

Package Sidebar

Install

npm i box-office-mojo-movie-gross

Weekly Downloads

1

Version

0.3.3

License

MIT

Last publish

Collaborators

  • alebelcor