When parsing, all fit without gaps?

import requests
from bs4 import BeautifulSoup

url = 'https://koronavirusa.site/ru'
page = requests.get(url)
soup = BeautifulSoup(page.text, "html.parser")
news = soup.find('div', class_='sppb-container-inner')
print(news.getText())

problem:
1,990,097ЗАРАЗИЛИСЬ125,859УМЕРЛО466,948ВЫЗДОРОВЕЛО

all without spaces, how can they be separate?
April 19th 20 at 12:02
1 answer
April 19th 20 at 12:04
Solution
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
thank you! can only say responsible for what this part of code?

infected = data[1].text
died = data[1].text
healed = data[2].text - Noah commented on April 19th 20 at 12:07
@Noah, On this page numbers are stored in div tags with the class 'sppb-animated-number'. All such DIVS on the page 3 PC.
data = container.find_all('div',class_='sppb-animated-number')

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

Find more questions by tags ParsingPython