Get ESPN NHL Player News
Arguments
- athlete_id
ESPN athlete identifier (character or numeric, e.g.
"5149125"). Obtain viaespn_nhl_team_roster().- limit
Maximum number of articles to return (default
50).- ...
Reserved for forward compatibility.
Value
A fastRhockey_data tibble with one row per news article, or an
empty data.frame() when no articles are available:
| col_name | types | description |
| athlete_id | character | ESPN athlete identifier (echoed from arg). |
| article_id | character | Article identifier. |
| type | character | Article type (e.g. "HeadlineNews"). |
| headline | character | Article headline. |
| description | character | Article description / lede. |
| published | character | Publication datetime (ISO 8601). |
| last_modified | character | Last-modified datetime (ISO 8601). |
| premium | logical | Whether article is premium/paywalled. |
| source | character | News source. |
| byline | character | Author byline. |
| article_url | character | Web URL for the full article. |
| image_url | character | Lead image URL. |
| category_league | character | League category label from article metadata. |
| category_team | character | Team category label from article metadata. |
| category_athlete | character | Athlete category label from article metadata. |
See also
family_espn_nhl lists every function in this family.
Examples
# \donttest{
try(espn_nhl_player_news(athlete_id = "5149125", limit = 10))
#> ! No news articles found for athlete 5149125.
#> data frame with 0 columns and 0 rows
# }
