nfl_player_searchex v0.3.0 NFLPlayerSearchex
NFLPlayerSearchex allows look up of NFL Players via the official NFL player search. This module is not an official NFL module. Replicates the functionality found at http://www.nfl.com/players/search
Link to this section Summary
Functions
Find current players by name. Matches on partial name, i.e. “smith” will match “Smith” & “smithwell”
Find current players by position
Link to this section Functions
Find current players by name. Matches on partial name, i.e. “smith” will match “Smith” & “smithwell”.
Parameters
name: String that represents the name of the player to search for. Can be first, last, or combination. Partial matches are also accepted.
Examples
iex> NFLPlayerSearchex.by_name("blount")
[%{average: 3.9, carries: 299, jersey_number: nil, name: "LeGarrette Blount",
position: "RB", position_description: "Running Back", status: "ACT",
status_description: "Active", team_long: "Philadelphia Eagles",
team_short: "PHI", touchdowns: 18, yards: 1161}]
Find current players by position.
Parameters
position: String that represents a position. Accepeted String values:"quarterback""runningback""widereceiver""tightend""offensiveline""defensivelineman""linebacker""defensiveback""kicker""punter"
Examples
iex> NFLPlayerSearchex.by_position("kicker")
[%{jersey_number: 19, name: "Roberto Aguayo", nil: 43, position: "K",
position_description: "Kicker", status: "ACT", status_description: "Active",
team_long: "Tampa Bay Buccaneers", team_short: "TB"},
%{jersey_number: 5, name: "Dan Bailey", nil: 56, position: "K",
position_description: "Kicker", status: "ACT", status_description: "Active",
team_long: "Dallas Cowboys", team_short: "DAL"},
...]