Scraping the data from the COVID 19 Dashboard: Saudi Arabia using Selenium and BeautifulSoup.
-
Install dependencies via pip:
$ pip install -r requirements.txt
-
Install Google Chrome.
-
Download ChromeDriver, the ChromeDriver version has to match the Google Chrome version you have installed, and place the file in the program directory.
-
Run the program:
$ python dashboard_scraper.py
-
Make sure that the page is fully loaded before it automatically closes, otherwise there might be some data missing.
-
Find the data in ksa_covid19.xlsx