[docs]classBahrain:location:str="Bahrain"units:str="units unclear"source_label:str="Ministry of Health"source_url:str="https://www.moh.gov.bh/COVID19"testing_type:str="PCR only"notes:str=""
[docs]def_parse_data(self):soup=get_soup(self.source_url)date_raw=soup.select_one("#lastupdated ul li").textreturn{"count":clean_count(soup.select_one("#renderbody table th span").text),"date":extract_clean_date(date_raw,regex=r"(\d+/\d+/20\d+).*",date_format="%d/%m/%Y"),}