def parse_team_links(response):
    """Parse the links to individual teams from a franchise page to get injury
    reports."""

    years = response.css('th[data-stat=year_id] a::text').getall()
    links = response.css('th[data-stat=year_id] a::attr(href)').getall()
    # Injury reports are only available from 2009 onwards.
    return [link for year, link in zip(years, links) if int(year) >= 2009]