def _parse_player_data(self, player_data):
for field in self.__dict__:<EOL><INDENT>short_field = str(field)[<NUM_LIT:1>:]<EOL>if short_field == '<STR_LIT>' orshort_field == '<STR_LIT:index>' orshort_field == '<STR_LIT>' orshort_field == '<STR_LIT>' orshort_field == '<STR_LIT:name>' orshort_field == '<STR_LIT>' orshort_field == '<STR_LIT>' orshort_field == '<STR_LIT>':<EOL><INDENT>continue<EOL><DEDENT>field_stats = []<EOL>if type(player_data) == dict:<EOL><INDENT>for year, data in player_data.items():<EOL><INDENT>stats = pq(data['<STR_LIT:data>'])<EOL>value = self._parse_value(stats, short_field)<EOL>field_stats.append(value)<EOL><DEDENT><DEDENT>else:<EOL><INDENT>stats = pq(player_data)<EOL>value = self._parse_value(stats, short_field)<EOL>field_stats.append(value)<EOL><DEDENT>setattr(self, field, field_stats)<EOL><DEDENT>
Parse all player information and set attributes.

Iterate through each class attribute to parse the data from the HTML
page and set the attribute value with the result.

Parameters
----------
player_data : dictionary or string
    If this class is inherited from the ``Player`` class, player_data
    will be a dictionary where each key is a string representing the
    season and each value contains the HTML data as a string. If this
    class is inherited from the ``BoxscorePlayer`` class, player_data
    will be a string representing the player's game statistics in HTML
    format.