fix: Fix incidence extraction RE

This commit is contained in:
Adrian Rumpold
2021-06-19 19:19:52 +02:00
parent 359149bdda
commit 1a820b7dd1

View File

@@ -65,7 +65,7 @@ class CovidCrawler(CovidCrawlerBase):
text = match.p.text text = match.p.text
_log.debug(f"Infection data text: {text}") _log.debug(f"Infection data text: {text}")
matches = re.search(r"(\d+,\d+) Neuinfektion", text) matches = re.search(r"(\d+,\d+)\sNeuinfektion", text)
if not matches: if not matches:
raise ValueError("Could not extract incidence from scraped web page") raise ValueError("Could not extract incidence from scraped web page")