How can I scrape the last part of the anchor in the below HTML (i.e. “Josh Hall”)?
When I do the following, it gives me “None” instead of the name (“rows” is defined already):
def parse_player_names(row):
return [str(x.string) for x in row.find_all(‘a’)]
list_of_parsed_names = [parse_player_names(row) for row in rows[1:]]
df_player_names = DataFrame(list_of_parsed_names)
df_player_names