url = 'https://finance.yahoo.com/q/is?s=AAPL&annual'
r = requests.get(url)
soup = BeautifulSoup(r.text, 'html.parser')
pattern = re.compile('Net Income')
title = soup.find('strong', text=pattern)
row = title.parent.parent
cells = row.find_all('td')[1:]
values = [c.text.strip() for c in cells]
Очистите отчет о доходах Yahoo Finance с помощью Python