import requests
from bs4 import BeautifulSoup
url = 'https://koronavirusa.site/ru'
page = requests.get(url)
soup = BeautifulSoup(page.text, "html.parser")
container = soup.find('div', class_='sppb-container-inner')
data = container.find_all('div',class_='sppb-animated-number')
infected = data[0].text
died = data[1].text
healed = data[2].text
print(f"'Infected: {infected}
Died {died}
Was healed: {healed}"')
Infected: 1,990,746
Died: 125,919
Recovered: 466,997
infected = data[1].text
died = data[1].text
healed = data[2].text - Noah commented on April 19th 20 at 12:07
here looking for all the div tags with the class 'sppb-animated-number'. The result is returned in the list data.
Since the numbering of list elements starts at zero, the first number(1,990,746) will be the first in the list, the second number - the second element(died = data[1].text), etc. - breana.OReilly commented on April 19th 20 at 12:10