import requests


def get_player_stats_from_pfr(player_url, year):
    """
    Function that returns the HTML content for a particular player
    in a given NFL year/season.

    :param player_url: URL for the player's Pro Football Reference Page
    :param year: Year to access the player's stats for
    :return: String containing all content of the player's gamelogs for the given year
    """
    get_url = player_url + year
    response = requests.get(get_url)
    return response.content