We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b9e5287 commit e73d0c3Copy full SHA for e73d0c3
1 file changed
web_programming/covid_stats_via_xpath.py
@@ -47,13 +47,14 @@ def covid_stats(
47
except httpx.HTTPStatusError as e:
48
logging.error(f"HTTP error occurred: {e}")
49
return CovidData("N/A", "N/A", "N/A")
50
- data : list[str] = html.fromstring(response.content).xpath(xpath_str)
+ data: list[str] = html.fromstring(response.content).xpath(xpath_str)
51
if len(data) != 3:
52
logging.warning("Unexpected data format. The page structure may have changed.")
53
54
55
return CovidData(*data)
56
57
+
58
def main() -> None:
59
"""CLI entry point."""
60
parser = argparse.ArgumentParser(
0 commit comments