diff --git a/api/latest.json b/api/latest.json index 2812089..9ac0cbc 100644 --- a/api/latest.json +++ b/api/latest.json @@ -1,9 +1,9 @@ { "dailyLocalCases": { - "06-12-2021": 638 + "07-12-2021": 700 }, "dailyVaxDataPercent": { - "05-12-2021": { + "06-12-2021": { "completed": 87, "first": 87, "booster": 28 diff --git a/data/dailyLocalCases.json b/data/dailyLocalCases.json index 6d403a0..168ecfc 100644 --- a/data/dailyLocalCases.json +++ b/data/dailyLocalCases.json @@ -1,4 +1,5 @@ { + "07-12-2021": 700, "06-12-2021": 638, "05-12-2021": 523, "04-12-2021": 707, diff --git a/data/dailyVaxDataPercent.json b/data/dailyVaxDataPercent.json index c7eef56..bf3c2d3 100644 --- a/data/dailyVaxDataPercent.json +++ b/data/dailyVaxDataPercent.json @@ -1,4 +1,9 @@ { + "06-12-2021": { + "completed": 87, + "first": 87, + "booster": 28 + }, "05-12-2021": { "completed": 87, "first": 87, diff --git a/scraper/mohscraper2.py b/scraper/mohscraper2.py new file mode 100644 index 0000000..6f74023 --- /dev/null +++ b/scraper/mohscraper2.py @@ -0,0 +1,25 @@ +""" +Singapore Ministry of Health RSS Feed Scrapper +Version 2.0 +""" +# Import Required Modules + +import requests +import json +import xmltodict +import datetime +from bs4 import BeautifulSoup + +# Getters and Setters + +def get_MOH_website(): + data = requests.get('https://www.moh.gov.sg/') + data = BeautifulSoup(data.content, "html.parser") + return data + +def get_COVID_data(data): + mydivs = data.find_all("div", {"class": "stat-item"}) + mydivs = mydivs.find_all("div", {"class": "number"}) + print(mydivs) + +print(list(get_MOH_website().children)) \ No newline at end of file