From 5f0e2d978da52b810f74167414646e70f39479ce Mon Sep 17 00:00:00 2001 From: Albert Suarez Date: Thu, 19 Mar 2020 09:57:14 +0100 Subject: [PATCH] Changed table identifier name --- src/worldometers/retriever.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/worldometers/retriever.py b/src/worldometers/retriever.py index 6166c57..df0a231 100644 --- a/src/worldometers/retriever.py +++ b/src/worldometers/retriever.py @@ -44,7 +44,7 @@ def get_last_update(): html_content = _get_html(WORLDOMETERS_URL) if html_content: soup = BeautifulSoup(html_content, 'html.parser') - table_countries = soup.findChildren('table', id='main_table_countries') + table_countries = soup.findChildren('table', id='main_table_countries_today') # Table if table_countries: body_list = table_countries[0].findChildren('tbody')