import requests  #pip install requests

from bs4 import BeautifulSoup  #pip install bs4

 

url="https://www.worldometers.info/coronavirus/"

r=requests.get(url)

s=BeautifulSoup(r.text,"html.parser")

data=s.find_all("div",class_="maincounter-number")

 

print("Total Cases :",data[0].text.strip())

print("Total Deaths :",data[1].text.strip())

print("Total Recovered :",data[2].text.strip())