Skip to content

Commit

Permalink
Create icd11.py
Browse files Browse the repository at this point in the history
  • Loading branch information
cthoyt committed Mar 25, 2024
1 parent a9e6414 commit 21a748b
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions src/bioversions/sources/icd11.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
URL = "https://icd.who.int/browse/latest-release/mms/en"

import requests


def _get() -> str:
response = requests.get(URL, allow_redirects=True)
final_url = response.url
return final_url[len("https://icd.who.int/browse/"):].split("/")[0]


# https://icd.who.int/browse/latest-release/icf/en

0 comments on commit 21a748b

Please sign in to comment.