box-office-mojo-movie-gross
v0.3.3
Published
Get the gross of a Box Office Mojo's movie via its HTML
Downloads
24
Maintainers
Readme
box-office-mojo-movie-gross
Get the gross of a Box Office Mojo's movie via its HTML.
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