I am trying to extract the cast list of the office using BeautifulSoup to scrape this imdb page https://www.imdb.com/title/tt0386676/fullcredits/?ref_=tt_ql_cl.
actors = soup.findAll('table',{'cast_list'})
How would I change this so it only gives me the actor's name? An example of the HTML is:
<td> <a href="/name/nm0933988/?ref_=ttfc_fc_cl_t1"> Rainn Wilson </a> </td>
And I would like to only extract the text 'Rainn Wilson'.
Any help is appreciated, it's my first question here so please go easy on me.