Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import requests
- import os
- from bs4 import BeautifulSoup as bs
- import time
- coronavirus = "https://www.worldometers.info/coronavirus/"
- while True:
- r = requests.get(coronavirus)
- soup = bs(r.content, 'lxml')
- coronacount = soup.select_one('title').text
- cases = coronacount[27:34]
- deaths = coronacount[45:52]
- os.system("cls")
- print("Cases:",cases)
- print("Deaths:",deaths)
- time.sleep(3)
Add Comment
Please, Sign In to add comment