Scraping anchor data

How can I scrape the last part of the anchor in the below HTML (i.e. “Josh Hall”)?

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)

Josh Hall

Well…I’m trying to post the html and it turns into the link…anyone know how I can show them the html I’m trying to post?

I got it! Just had to change the “x.string” in the function to “x.text”