Created
December 17, 2018 18:00
-
-
Save lsdr/b535a30356387437f38d8e717d6222ce to your computer and use it in GitHub Desktop.
count IR total among NFL current injuries list
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Pro Football Reference | Current NFL Injuries | |
// https://www.pro-football-reference.com/players/injuries.htm | |
var elements = document.getElementById("div_injuries"); | |
var injuries = elements.querySelectorAll("td[data-stat='injury_class']"); | |
var seasonEnding = Array.prototype.slice.call(classes).filter(el => el.textContent == "I-R"); | |
console.log(injuries.length); | |
console.log(seasonEnding.length); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment