cowidev.testing.incremental¶
cowidev.testing.incremental.africacdc¶
- class cowidev.testing.incremental.africacdc.AfricaCDC[source]¶
Bases:
CountryTestBase
- _base_url = 'https://services8.arcgis.com/vWozsma9VzGndzx7/ArcGIS/rest/services/DailyCOVIDDashboard_5July21_1/FeatureServer/0/'¶
- columns_use: list = ['Country', 'Tests_Conducted']¶
- date: str = None¶
- increment_countries(df: DataFrame)[source]¶
Exports data to the relevant csv and logs the confirmation.
- location: str = 'ACDC'¶
- pipe_filter_entries(df: DataFrame) DataFrame [source]¶
Gets valid entries:
Countries not coming from OWID (avoid loop)
- pipe_rename_countries(df: DataFrame) DataFrame [source]¶
Renames countries to match OWID naming convention.
- rename_columns: dict = {'Country': 'location', 'Tests_Conducted': 'Cumulative total'}¶
- source_label: str = 'Africa Centres for Disease Control and Prevention'¶
- property source_url¶
- property source_url_date¶
- source_url_ref: str = 'https://africacdc.org/covid-19/'¶
- units: str = 'tests performed'¶
cowidev.testing.incremental.albania¶
- class cowidev.testing.incremental.albania.Albania[source]¶
Bases:
object
- _base_url = 'https://shendetesia.gov.al'¶
- _get_link_and_date_from_element(elem: Tag) tuple [source]¶
Extract link and date from relevant element.
- _num_max_pages = 3¶
- _url_subdirectory = 'category/lajme/page'¶
- location = 'Albania'¶
- notes = ''¶
- regex = {'count': '(\\d+) testime nga të cilat kanë rezultuar pozitivë me COVID19', 'date': '(\\d+\\/\\d+\\/\\d+)', 'title': 'COVID19/ Ministria e Shëndetësisë:'}¶
- source_label = 'Ministry of Health and Social Protection'¶
- units = 'tests performed'¶
cowidev.testing.incremental.antigua_barbuda¶
- class cowidev.testing.incremental.antigua_barbuda.AntiguaBarbuda[source]¶
Bases:
CountryTestBase
- location: str = 'Antigua and Barbuda'¶
- source_label: str = 'Ministry of Health'¶
- source_url: str = 'https://covid19.gov.ag'¶
- source_url_ref: str = 'https://covid19.gov.ag'¶
- units: str = 'tests performed'¶
cowidev.testing.incremental.azerbaijan¶
- class cowidev.testing.incremental.azerbaijan.Azerbaijan[source]¶
Bases:
CountryTestBase
- location: str = 'Azerbaijan'¶
- source_label: str = 'Cabinet of Ministers of Azerbaijan'¶
- source_url: str = 'https://koronavirusinfo.az/az/page/statistika/azerbaycanda-cari-veziyyet'¶
- source_url_ref: str = 'https://koronavirusinfo.az/az/page/statistika/azerbaycanda-cari-veziyyet'¶
- units: str = 'tests performed'¶
cowidev.testing.incremental.bahamas¶
- class cowidev.testing.incremental.bahamas.Bahamas[source]¶
Bases:
CountryTestBase
- _base_url: str = 'https://www.bahamas.gov.bs'¶
- column_to_check: str = 'Total # of RT-'¶
- location: str = 'Bahamas'¶
- regex: dict = {'title': 'COVID-19 Report Update'}¶
- source_label: str = 'Ministry of Health and Wellness'¶
- source_url: str = 'https://www.bahamas.gov.bs/wps/portal/public/gov/government/news/!ut/p/b1/vZfJkqM4EIafpR6AsiQQgqNYbbMjwOCLwyvewAu2WZ5-XBPTMV3dPa45lI1ORGTGp_xzkdQb99LeuJzeNvn0sjmU0_3H_1ic8MB0KBUkRzJECgYxb_DYorwZwLtBdjcA__FR8NnfxEC8-_s29UkfeRbqjXppP7s22sHJDapM1tko9PXQnUehe92PiHixcwHpzV455OKSSxf2iQgj1TBGDm7ramRfJx1JS7nRrWbu7c6xGJ6yel0dCrnYggBXgCmRml0Pc7FE8z2Ty5tk8Ae7JcoQL1REy3S10QU85IOJ5-mic49bSy4wn825Zi2VYgPBPzE-COJRjBB_4S-A_6fxA8AX_qPe-OEWP3bwt8GjNH6VSLd_KJa97G5GfjKLEgAGENCQwQBILuxFvRQIE7Ztj4Nu14VbULdut3BZ5ADQxSDSUubOdFBdVOjocAh10Dq60EaRYTOwQ8y1_UUSxgpVOU-fnn8FeiiS70AVilaMAQPCs4Em9qS7ECTyKUbA9OCrgfxLJTV9Dzw9wk9FIwTfn8Nhb7yZFe_1vHgH75IsQkwkQZZEIAgS6SXbDBBNGtT6wJ-o1dWVTVwEYFNLRp4F62V8OcyZxbh9CH3On-rVVu-4mV4h61yPd7NAoZvT3rVnXRRKMvCahTkw2Db3g4Oe2lZnBH3BrXWzTgsaJ8Ar2hvHcd5YvRS5m17Xx2V_OYzLhJumHe5OS1_g-dt6tmvNOYG-k11QMuYWFc-z0aoKkRgZZxMKocFWWRpF81Vl-qfL2s3f3h4La1q_12oXoEivkaPXHdwmbqT5gRvvWndhQaYNWmAnAxZltRPfBe4GHbv8EJauHcZmj7tRNfCzgZ-bA1DyYuAfavXJQPHVwGdJGiggYLbMU0AxBoM-iggxYx5g_tURvrpKxVfnUPz-Kv00UXlZJhLEkiBBCUEo9ZJhVsjajtaGPl6F2ZJcyyVix62eVXRzoYBN4nJhmdwti87lSpkgz-ycW07VzbZfcGjYikEXzAJM6K3MjaE6XS5n_WmrHW3zZnt93DqTMY2Si4tnkkayUhGLaHE8-9N0WjoypzbqTVeVEkz44KupKJHfC5yEjrNVrPttooE7hBwtjd3IsJjsQcdO7mcQ6FgMHXcbWmybIeey-iHOPJ9W2Rd3FJN_NvDXqSi-GoifBTQ9J1A_JI2UD0n5fp-KNu_p8NXA78_hp47CAsRYhkgWEUEEko-OaolWDWrt_mgahkiCR5EMpuE1cFZqvhueA5aWh8WaobNU5te95zadt_S5DAf64OTOpjNxEtjtjpLY3NDriCUnLSnIfOvIKjuUOlj5zc7FrWKfV81yhfmDhZrQxEgvjfR8PRX16XStbC297BS8kEHa3GdGTO_ddSzim2XZYtivofTv4ovbH5b0s0n99heUoIvF/dl4/d5/L2dBISEvZ0FBIS9nQSEh/'¶
- source_url_ref: str = None¶
- units: str = 'tests performed'¶
cowidev.testing.incremental.bahrain¶
cowidev.testing.incremental.bangladesh¶
cowidev.testing.incremental.barbados¶
- class cowidev.testing.incremental.barbados.Barbados[source]¶
Bases:
CountryTestBase
- location: str = 'Barbados'¶
- regex: dict = {'count': 'has conducted (\\d+) tests', 'title': 'COVID-19 Update'}¶
- source_label: str = 'Ministry of Health'¶
- source_url: str = 'https://gisbarbados.gov.bb/top-stories/'¶
- source_url_ref: str = None¶
- units: str = 'tests performed'¶
cowidev.testing.incremental.belarus¶
- class cowidev.testing.incremental.belarus.Belarus[source]¶
Bases:
CountryTestBase
- location: str = 'Belarus'¶
- regex: dict = {'date': '\\d{1,2}\\.\\d{1,2}\\.\\d{4}г.', 'element': 'ПРОВЕДЕНО ТЕСТОВ'}¶
- source_label: str = 'Ministry of health'¶
- source_url: str = 'https://stopcovid.belta.by/'¶
- source_url_ref: str = 'https://stopcovid.belta.by/'¶
- units: str = 'tests performed'¶
cowidev.testing.incremental.belize¶
- class cowidev.testing.incremental.belize.Belize[source]¶
Bases:
CountryTestBase
- location: str = 'Belize'¶
- regex: dict = {'element': 'Tests Completed'}¶
- source_label: str = 'Ministry of Health and Wellness'¶
- source_url: str = 'https://sib.org.bz/covid-19/by-the-numbers/'¶
- source_url_ref: str = 'https://sib.org.bz/covid-19/by-the-numbers/'¶
- units: str = 'tests performed'¶
cowidev.testing.incremental.benin¶
- class cowidev.testing.incremental.benin.Benin[source]¶
Bases:
CountryTestBase
- location: str = 'Benin'¶
cowidev.testing.incremental.bulgaria¶
cowidev.testing.incremental.cambodia¶
- class cowidev.testing.incremental.cambodia.Cambodia[source]¶
Bases:
CountryTestBase
- location: str = 'Cambodia'¶
cowidev.testing.incremental.cape_verde¶
- class cowidev.testing.incremental.cape_verde.CapeVerde[source]¶
Bases:
object
- _get_relevant_element(soup: BeautifulSoup) Tag [source]¶
Get the relevant element from the source page.
- location = 'Cape Verde'¶
- regex = {'count': '(?:total|totais) (?:de|dos|das) (\\d+) (?:resultados|amostras)', 'date': '(\\d+) (?:de )?(\\w+) de (20\\d+)'}¶
- source_label = 'Government of Cape Verde'¶
- source_url = 'https://covid19.cv/category/boletim-epidemiologico/'¶
- units = 'tests performed'¶
cowidev.testing.incremental.croatia¶
- class cowidev.testing.incremental.croatia.Croatia[source]¶
Bases:
CountryTestBase
- location: str = 'Croatia'¶
- regex = {'count': 'Do danas je ukupno testirano ([\\d\\.]+) osoba', 'date': 'Objavljeno: ([\\d\\.]{10})'}¶
- source_label: str = 'Government of Croatia'¶
- source_url_ref: str = 'https://www.koronavirus.hr/najnovije/ukupno-dosad-382-zarazene-osobe-u-hrvatskoj/35'¶
- units: str = 'people tested'¶
cowidev.testing.incremental.el_salvador¶
- class cowidev.testing.incremental.el_salvador.ElSalvador[source]¶
Bases:
CountryTestBase
- location: str = 'El Salvador'¶
- regex: dict = {'element': 'window\\.infographicData=({.*})', 'title': "\\'PRUEBAS REALIZADAS\\'\\, \\'CASOS POSITIVOS\\'"}¶
- rename_columns: dict = {'CASOS POSITIVOS': 'positive', 'PRUEBAS REALIZADAS': 'Daily change in cumulative total'}¶
- source_label: str = 'Government of El Salvador'¶
- source_url: str = 'https://e.infogram.com/'¶
- source_url_ref: str = 'https://covid19.gob.sv/'¶
- units: str = 'tests performed'¶
cowidev.testing.incremental.emro¶
- class cowidev.testing.incremental.emro.EMRO[source]¶
Bases:
CountryTestBase
- _base_url: str = 'http://www.emro.who.int'¶
- property area: list¶
Areas of pdf to be extracted
- Returns:
[[y1, x1, y2, x2], …]
- Return type:
list
For more info see: https://github.com/tabulapdf/tabula-java/wiki/Using-the-command-line-tabula-extractor-tool
- columns_to_check: dict = {'date': 'Table 1: Epidemiological situation in the Eastern Mediterranean Region', 'tests': 'Total Tests'}¶
- columns_use: list = ['Country', 'Total Tests']¶
- date: str = None¶
- increment_countries(df: DataFrame)[source]¶
Exports data to the relevant csv and logs the confirmation.
- location: str = 'EMRO'¶
- pipe_filter_entries(df: DataFrame) DataFrame [source]¶
Gets valid entries:
Countries not coming from OWID (avoid loop)
- pipe_rename_countries(df: DataFrame) DataFrame [source]¶
Renames countries to match OWID naming convention.
- regex: dict = {'date': '(\\d{1,2} \\w+ 20\\d{2})'}¶
- rename_columns: dict = {'Country': 'location', 'Total Tests': 'Cumulative total'}¶
- source_label: str = 'WHO Regional Office for the Eastern Mediterranean'¶
- source_url: str = 'http://www.emro.who.int/health-topics/corona-virus/situation-reports.html'¶
- units: str = 'tests performed'¶
cowidev.testing.incremental.equatorial_guinea¶
- class cowidev.testing.incremental.equatorial_guinea.EquatorialGuinea[source]¶
Bases:
CountryTestBase
- location: str = 'Equatorial Guinea'¶
cowidev.testing.incremental.faeroe_islands¶
- class cowidev.testing.incremental.faeroe_islands.FaeroeIslands[source]¶
Bases:
object
- location: str = 'Faeroe Islands'¶
- notes: str = ''¶
- source_label: str = 'The Government of the Faeroe Islands'¶
- source_url: str = 'https://corona.fo/json/stats'¶
- source_url_ref: str = 'https://corona.fo/api'¶
- units: str = 'people tested'¶
cowidev.testing.incremental.fiji¶
- class cowidev.testing.incremental.fiji.Fiji[source]¶
Bases:
object
- __element = None¶
- _get_list_of_elements(soup: BeautifulSoup) None [source]¶
Get the relevant elements list from the source page.
- _get_relevant_element_and_year() tuple [source]¶
Get the relevant element and year from the element list.
- _num_max_pages = 3¶
- _num_rows_per_page = 3¶
- location = 'Fiji'¶
- notes = ''¶
- regex = {'count': 'tests since 2020 are (\\d+,\\d+)', 'date': 'tests have been reported for (\\w+ \\d+)', 'title': 'COVID-19 Update', 'year': '\\d{4}'}¶
- source_label = 'Fiji Ministry of Health & Medical Services'¶
- source_url = 'https://www.health.gov.fj/page/'¶
- units = 'tests performed'¶
cowidev.testing.incremental.georgia¶
- class cowidev.testing.incremental.georgia.Georgia[source]¶
Bases:
object
- _base_url = 'https://agenda.ge'¶
- _get_link_and_date_from_element(elem: Tag) tuple [source]¶
Extract link and date from relevant element.
- _num_max_pages = 3¶
- _url_query_pt1 = 'https://agenda.ge/ajax/get-nodes?pageOptions%5Btag%5D=&pageOptions%5Byear%5D=2022&pageOptions%5Btype%5D=news&pageOptions%5Blang%5D=en&listOptions%5Byear%5D=all&listOptions%5Bmonth%5D=0&listOptions%5Bday%5D=0&listOptions%5Bpage%5D='¶
- _url_query_pt2 = '&listOptions%5Bcount%5D=16&listOptions%5Brange%5D=all&listOptions%5Brows%5D=4&listOptions%5Bcolumns%5D=4&listOptions%5Brubric%5D=&listOptions%5Bcategory%5D='¶
- location = 'Georgia'¶
- notes = ''¶
- regex = {'count': '(\\d+) tests .*? 24 hours', 'date': '(\\d+ \\w+ \\d+)', 'title': '(Georgia reports)|(coronavirus)'}¶
- source_label = 'Government of Georgia'¶
- units = 'tests performed'¶
cowidev.testing.incremental.gibraltar¶
- class cowidev.testing.incremental.gibraltar.Gibraltar[source]¶
Bases:
CountryTestBase
- location: str = 'Gibraltar'¶
- regex: dict = {'count': 'Results received: ([\\d,]+)', 'date': 'valid as of (\\d{1,2})\\w+ (\\w+ 20\\d{2})'}¶
- source_label: str = 'The Department of Public Health'¶
- source_url: str = 'https://healthygibraltar.org/news/update-on-wuhan-coronavirus/'¶
- source_url_ref: str = 'https://healthygibraltar.org/news/update-on-wuhan-coronavirus/'¶
- units: str = 'tests performed'¶
cowidev.testing.incremental.greece¶
- class cowidev.testing.incremental.greece.Greece[source]¶
Bases:
CountryTestBase
- location: str = 'Greece'¶
- regex: dict = {'date': 'elementor-element-5b9d061', 'element': 'elementor-element-9df72a6'}¶
- source_label: str = 'National Organization of Public Health'¶
- source_url: str = 'https://covid19.gov.gr/'¶
- source_url_ref: str = 'https://covid19.gov.gr/'¶
- units: str = 'samples tested'¶
cowidev.testing.incremental.haiti¶
- class cowidev.testing.incremental.haiti.Haiti[source]¶
Bases:
CountryTestBase
- location: str = 'Haiti'¶
- regex: dict = {'date': '(\\d{1,2}\\-\\d{1,2}\\-20\\d{2})', 'metrics': 'INDICATEURS ([\\d,]+)', 'title': 'surveillance du nouveau Coronavirus \\(COVID-19\\)'}¶
- source_label: str = 'Ministry of Public Health and Population'¶
- source_url: dict = 'https://www.mspp.gouv.ht/documentation/'¶
- source_url_ref: str = None¶
- units: str = 'tests performed'¶
cowidev.testing.incremental.iran¶
- class cowidev.testing.incremental.iran.Iran[source]¶
Bases:
object
- _base_url = 'https://irangov.ir'¶
- _get_link_and_date_from_element(elem: Tag) tuple [source]¶
Extract link and date from relevant element.
- _num_max_pages = 3¶
- _url_subdirectory = 'ministry-of-health-and-medical-education'¶
- location = 'Iran'¶
- notes = ''¶
- regex = {'count': '(\\d+) COVID-19 tests have been taken across the country so far', 'date': '(\\d+\\-\\d+\\-\\d+)', 'title': "Health Ministry's Updates on COVID-19"}¶
- source_label = 'Ministry of Health and Medical Education'¶
- units = 'tests performed'¶
cowidev.testing.incremental.jordan¶
- class cowidev.testing.incremental.jordan.Jordan[source]¶
Bases:
CountryTestBase
- property headers¶
Headers for the request
- location: str = 'Jordan'¶
- notes: str = ''¶
- source_label: str = 'Ministry of Health'¶
- source_url: str = 'https://wabi-west-europe-d-primary-api.analysis.windows.net/public/reports/querydata?synchronous=true'¶
- source_url_ref: str = 'https://corona.moh.gov.jo/ar'¶
- units: str = 'tests performed'¶
- week: str = 33¶
cowidev.testing.incremental.kosovo¶
- class cowidev.testing.incremental.kosovo.Kosovo[source]¶
Bases:
CountryTestBase
- location: str = 'Kosovo'¶
- regex: dict = {'count': 'Gjithsej të testuar', 'date': 'Përditësimi i fundit:'}¶
- source_label: str = 'National Institute of Public Health of Kosovo'¶
- source_url: str = 'https://datastudio.google.com/embed/u/0/reporting/2e546d77-8f7b-4c35-8502-38533aa0e9e8/page/tI3oB'¶
- source_url_ref: str = 'https://datastudio.google.com/embed/u/0/reporting/2e546d77-8f7b-4c35-8502-38533aa0e9e8'¶
- units: str = 'tests performed'¶
cowidev.testing.incremental.laos¶
- class cowidev.testing.incremental.laos.Laos[source]¶
Bases:
object
- _source_url = 'https://www.covid19.gov.la/index.php'¶
- location = 'Laos'¶
- notes = ''¶
- regex = {'date': 'ຂໍ້ມູນ ເວລາ .*? (\\d+\\/\\d+\\/\\d+)', 'tests': 'ຮັບການກວດມື້ນີ້ (\\d+)'}¶
- source_label = 'Ministry of Health'¶
- units = 'tests performed'¶
cowidev.testing.incremental.lebanon¶
cowidev.testing.incremental.libya¶
cowidev.testing.incremental.maldives¶
- class cowidev.testing.incremental.maldives.Maldives[source]¶
Bases:
CountryTestBase
- location: str = 'Maldives'¶
- regex: dict = {'date': '(\\d{1,2}\\/\\d{1,2}\\/20\\d{2})'}¶
- source_label: str = 'Maldives Health Protection Agency'¶
- source_url: str = 'https://covid19.health.gov.mv/v2_data.json'¶
- source_url_ref: str = 'https://covid19.health.gov.mv/en'¶
- units: str = 'samples tested'¶
cowidev.testing.incremental.moldova¶
- class cowidev.testing.incremental.moldova.Moldova[source]¶
Bases:
object
- location = 'Moldova'¶
- notes = ''¶
- regex = {'count': '((\\d+)) teste.|(\\d+) de teste', 'date': '(\\d+\\/\\d+\\/\\d+)', 'title': '(cazuri noi de COVID-19)|(cazuri de COVID-19)|(cazuri de COVID-19,)'}¶
- source_label = 'Ministry of Health of the Republic of Moldova'¶
- source_url = 'https://msmps.gov.md/media/comunicate/'¶
- units = 'tests performed'¶
cowidev.testing.incremental.mongolia¶
cowidev.testing.incremental.morocco¶
- class cowidev.testing.incremental.morocco.Morocco[source]¶
Bases:
CountryTestBase
- location: str = 'Morocco'¶
- regex: dict = {'count': '\\s+', 'date': '00 (\\d{1,2}\\-\\d{2}\\-20\\d{2})'}¶
- source_label: str = 'Ministry of Health'¶
- source_url: str = 'http://www.covidmaroc.ma/Pages/AccueilAR.aspx'¶
- source_url_ref: str = 'http://www.covidmaroc.ma/Pages/AccueilAR.aspx'¶
- units: str = 'people tested'¶
cowidev.testing.incremental.myanmar¶
- class cowidev.testing.incremental.myanmar.Myanmar[source]¶
Bases:
CountryTestBase
- location: str = 'Myanmar'¶
- regex: dict = {'date': 'as of (\\d{1,2}\\-\\d{1,2}\\-20\\d{2})'}¶
- source_label: str = 'Ministry of Health'¶
- source_url: str = 'https://services7.arcgis.com/AB2LoFxJT2bJUJYC/arcgis/rest/services/CaseCount_130720/FeatureServer/0/query?f=json&where=1%3D1&returnGeometry=false&spatialRel=esriSpatialRelIntersects&outFields=*&outStatistics=%5B%7B%22statisticType%22%3A%22sum%22%2C%22onStatisticField%22%3A%22Tested%22%2C%22outStatisticFieldName%22%3A%22value%22%7D%5D&resultType=standard'¶
- source_url_ref: str = 'https://mohs.gov.mm/Main/content/publication/2019-ncov'¶
- units: str = 'samples tested'¶
cowidev.testing.incremental.nepal¶
- class cowidev.testing.incremental.nepal.Nepal[source]¶
Bases:
CountryTestBase
- location: str = 'Nepal'¶
- regex: dict = {'date': '(\\d{1,2}\\-\\d{1,2}\\-20\\d{2})', 'metrics': 'PCR \\| Antigen (\\d+) (\\d+) PCR \\| Antigen (\\d+) (\\d+)'}¶
- source_label: str = 'Ministry of Health and Population'¶
- source_url: dict = {'api': 'https://covid19.mohp.gov.np/covid/api/ministryrelease', 'base': 'https://covid19.mohp.gov.np/covid/englishSituationReport/'}¶
- source_url_ref: str = None¶
- units: str = 'samples tested'¶
cowidev.testing.incremental.new_zealand¶
- class cowidev.testing.incremental.new_zealand.NewZealand[source]¶
Bases:
object
- location = 'New Zealand'¶
- notes = ''¶
- source_label = 'Ministry of Health'¶
- source_url = 'https://www.health.govt.nz/our-work/diseases-and-conditions/covid-19-novel-coronavirus/covid-19-data-and-statistics/covid-19-testing-data'¶
- units = 'tests performed'¶
cowidev.testing.incremental.nicaragua¶
- class cowidev.testing.incremental.nicaragua.Nicaragua[source]¶
Bases:
CountryTestBase
- _base_url: str = 'http://www.minsa.gob.ni/index.php/repository/func-download'¶
- location: str = 'Nicaragua'¶
- regex: dict = {'title': 'Boletín Epidemiológico de la Semana No. '}¶
- source_label: str = 'Ministry of Health'¶
- source_url_ref: str = 'http://www.minsa.gob.ni/index.php/repository/Descargas-MINSA/COVID-19/Boletines-Epidemiol%C3%B3gico/Boletines-2022/'¶
- units: str = 'tests performed'¶
cowidev.testing.incremental.north_macedonia¶
- class cowidev.testing.incremental.north_macedonia.NorthMacedonia[source]¶
Bases:
CountryTestBase
- location: str = 'North Macedonia'¶
- regex: dict = {'count': 'Досега во земјата се направени вкупно (\\d+)', 'date': '(\\d{1,2}.\\d{2}.\\d{4})'}¶
- source_label: str = 'Ministry of Health'¶
- source_url: str = 'https://koronavirus.gov.mk/vesti'¶
- source_url_ref: str = 'https://koronavirus.gov.mk/vesti'¶
- units: str = 'tests performed'¶
cowidev.testing.incremental.pakistan¶
- class cowidev.testing.incremental.pakistan.Pakistan[source]¶
Bases:
object
- location = 'Pakistan'¶
- notes = ''¶
- regex = {'count': 'Total Tests', 'date': '(\\d+ \\w+, \\d+)', 'header': 'Pakistan statistics '}¶
- source_label = 'Government of Pakistan'¶
- source_url = 'http://www.covid.gov.pk/'¶
- units = 'tests performed'¶
cowidev.testing.incremental.palau¶
- class cowidev.testing.incremental.palau.Palau[source]¶
Bases:
CountryTestBase
- location: str = 'Palau'¶
- regex: dict = {'count': '((\\d+),(\\d+))COVID-19 Testsconducted \\(since', 'date': '(\\d{1,2} \\w+ 20\\d{2})'}¶
- source_label: str = 'Ministry of Health and Human Services'¶
- source_url: str = 'http://www.palauhealth.org/'¶
- source_url_ref: str = ''¶
- units: str = 'tests performed'¶
cowidev.testing.incremental.papua_new_guinea¶
- class cowidev.testing.incremental.papua_new_guinea.PapuaNewGuinea[source]¶
Bases:
object
- location = 'Papua New Guinea'¶
- notes = ''¶
- regex = {'date': '\\d{1,2}[a-z]{2} [A-Za-z]+ \\d{4}'}¶
- source_label = 'Ministry of Health'¶
- source_url = 'https://covid19.info.gov.pg/'¶
- source_url_ref = 'https://covid19.info.gov.pg/'¶
- units = 'people tested'¶
cowidev.testing.incremental.paraguay¶
- class cowidev.testing.incremental.paraguay.Paraguay[source]¶
Bases:
CountryTestBase
- location: str = 'Paraguay'¶
- source_label: str = 'Ministry of Public Health and Social Welfare'¶
- source_url: str = 'https://public.tableau.com/views/COVID-19PYTableauPublic/COVID-19Prensa'¶
- source_url_ref: str = 'https://www.mspbs.gov.py/reporte-covid19.html'¶
- units: str = 'tests performed'¶
cowidev.testing.incremental.russia¶
- class cowidev.testing.incremental.russia.Russia[source]¶
Bases:
object
- _base_url = 'https://rospotrebnadzor.ru'¶
- _num_max_pages = 3¶
- _url_subdirectory = '/about/info/news/?PAGEN_1='¶
- location = 'Russia'¶
- notes = ''¶
- regex = {'count': 'проведено (\\d+).* исследовани', 'date': '(\\d+ \\d+ \\d+)', 'title': 'Информационный бюллетень о ситуации'}¶
- source_label = 'Government of the Russian Federation'¶
- units = 'tests performed'¶
cowidev.testing.incremental.saint_kitts_nevis¶
- class cowidev.testing.incremental.saint_kitts_nevis.SaintKittsNevis[source]¶
Bases:
CountryTestBase
- location: str = 'Saint Kitts and Nevis'¶
- regex: dict = {'element': 'No. of Persons Tested'}¶
- source_label: str = 'Ministry of Health'¶
- source_url: str = 'https://covid19.gov.kn/src/stats2/'¶
- source_url_ref: str = 'https://covid19.gov.kn/src/stats2/'¶
- units: str = 'people tested'¶
cowidev.testing.incremental.saint_lucia¶
- class cowidev.testing.incremental.saint_lucia.SaintLucia[source]¶
Bases:
CountryTestBase
- location: str = 'Saint Lucia'¶
- regex: dict = {'date': 'As of .*? (\\w+ \\d{1,2}, 20\\d{2})'}¶
- source_label: str = 'Ministry of Health and Wellness'¶
- source_url_ref: str = 'https://www.covid19response.lc/'¶
- units: str = 'tests performed'¶
cowidev.testing.incremental.saint_vincent_and_the_grenadines¶
- class cowidev.testing.incremental.saint_vincent_and_the_grenadines.SaintVincentAndTheGrenadines[source]¶
Bases:
CountryTestBase
- location: str = 'Saint Vincent and the Grenadines'¶
- regex: dict = {'ag': 'today Total Rapid Ag \\(.*?\\) [\\d,]+ ([\\d,]+)', 'date': '(\\w+ \\d{1,2} 20\\d{2})', 'pcr': 'Total PCR Tests done ([\\d,]+)', 'pdf': 'Please click for full details', 'title': 'COVID-19 Report'}¶
- source_label: str = 'Ministry of Health, Wellness and the Environment'¶
- source_url: dict = 'http://health.gov.vc/health/index.php/c'¶
- source_url_ref: str = None¶
- units: str = 'tests performed'¶
cowidev.testing.incremental.singapore¶
cowidev.testing.incremental.suriname¶
cowidev.testing.incremental.sweden¶
- class cowidev.testing.incremental.sweden.Sweden[source]¶
Bases:
CountryTestBase
- location: str = 'Sweden'¶
- notes: str = ''¶
- regex = {'title': 'Antalet testade individer och genomförda test per', 'week': '[vV]ecka (\\d+)'}¶
- source_label: str = 'Swedish Public Health Agency'¶
- source_url: str = 'https://www.folkhalsomyndigheten.se/smittskydd-beredskap/utbrott/aktuella-utbrott/covid-19/statistik-och-analyser/antalet-testade-for-covid-19/'¶
- units: str = 'tests performed'¶
cowidev.testing.incremental.syria¶
- class cowidev.testing.incremental.syria.Syria[source]¶
Bases:
CountryTestBase
- _get_link_and_date_from_element(elem: Tag) tuple [source]¶
Extract link and date from relevant element.
- location: str = 'Syria'¶
- regex: dict = {'count': 'Total Test (\\d+) (\\d+)', 'date': '(\\d{1,2} \\w+ 20\\d{2})'}¶
- source_label: str = 'WHO Syrian Arab Republic'¶
- source_url: str = 'https://reliefweb.int/updates?advanced-search=%28C226%29_%28S1275%29_%28DT4642%29_%28T4595%29_%28F10%29'¶
- units: str = 'tests performed'¶
cowidev.testing.incremental.timor¶
- class cowidev.testing.incremental.timor.TimorLeste[source]¶
Bases:
CountryTestBase
- location: str = 'Timor'¶
- regex: dict = {'date': '(\\w+ \\d{1,2}, \\d{4})', 'element': 'Komulativo Teste'}¶
- source_label: str = 'Ministry of Health'¶
- source_url: str = 'https://covid19.gov.tl/dashboard/'¶
- source_url_ref: str = 'https://covid19.gov.tl/dashboard/'¶
- units: str = 'tests performed'¶
cowidev.testing.incremental.togo¶
- class cowidev.testing.incremental.togo.Togo[source]¶
Bases:
CountryTestBase
- location: str = 'Togo'¶
- regex: dict = {'count': 'Nombre total ', 'date': '(\\d{1,2} \\w+ 20\\d{2})'}¶
- source_label: str = 'Ministry of Health'¶
- source_url: str = 'https://covid19.gouv.tg/'¶
- source_url_ref: str = 'https://covid19.gouv.tg/'¶
- units: str = 'tests performed'¶
cowidev.testing.incremental.tunisia¶
- class cowidev.testing.incremental.tunisia.Tunisia[source]¶
Bases:
CountryTestBase
- location: str = 'Tunisia'¶
- regex: dict = {'date': 'Chiffres clés mis à jour le '}¶
- source_label: str = 'Tunisia Ministry of Health'¶
- source_url: str = 'https://onmne.tn'¶
- source_url_ref: str = 'https://onmne.tn'¶
- units: str = 'people tested'¶
cowidev.testing.incremental.ukraine¶
- class cowidev.testing.incremental.ukraine.Ukraine[source]¶
Bases:
object
- location = 'Ukraine'¶
- notes = ''¶
- regex = {'count': 'total of tests', 'date': 'Information as of (\\w+) (\\d{1,2})'}¶
- source_label = 'Cabinet of Ministers of Ukraine'¶
- source_url = 'https://covid19.gov.ua/en'¶
- units = 'tests performed'¶
cowidev.testing.incremental.vanuatu¶
- class cowidev.testing.incremental.vanuatu.Vanuatu[source]¶
Bases:
CountryTestBase
- _base_url: str = 'https://covid19.gov.vu'¶
- property area: list¶
Areas of pdf to be extracted :returns: [[y1, x1, y2, x2], …] :rtype: list
For more info see: https://github.com/tabulapdf/tabula-java/wiki/Using-the-command-line-tabula-extractor-tool
- location: str = 'Vanuatu'¶
- regex: dict = {'date': '\\d{1,2}\\/\\d{2}\\/20\\d{2} - (\\d{1,2}\\/\\d{2}\\/20\\d{2})', 'title': 'Surveillance Report for Epi Week'}¶
- source_label: str = 'Ministry of Health'¶
- source_url: str = 'https://covid19.gov.vu/index.php/surveillance'¶
- source_url_ref: str = None¶
- units: str = 'people tested'¶
cowidev.testing.incremental.vietnam¶
- class cowidev.testing.incremental.vietnam.Vietnam[source]¶
Bases:
object
- base_url = 'https://covid19.gov.vn'¶
- location = 'Vietnam'¶
- regex = {'count': 'mẫu tương đương (\\d+)', 'date': '(\\d{2}\\-\\d{2}\\-\\d{4})', 'title': 'Ngày'}¶
- source_label = 'Ministry of Health of Vietnam'¶
- source_url = 'https://covid19.gov.vn/ban-tin-covid-19.htm'¶
- units = 'people tested'¶