npm.io
0.3.3 • Published 10 years ago

box-office-mojo-movie-gross

Licence
MIT
Version
0.3.3
Deps
1
Vulns
0
Weekly
0

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

Keywords