Skip to content

Instantly share code, notes, and snippets.

View lakomyt's full-sized avatar
🏠
Working from home

lakomyt

🏠
Working from home
View GitHub Profile
#!/usr/bin/python3
import requests
from bs4 import BeautifulSoup
def coronavirus():
url = "https://www.worldometers.info/coronavirus/"
soup = BeautifulSoup(requests.get(url).text, "html.parser")
table = soup.find("tbody")
rows = table.findAll("tr", attrs={"style":""})