Skip to content

Commit

Permalink
Revert update to SK report dynamic URL
Browse files Browse the repository at this point in the history
- SK has reverted to their old URL format for the CRISP report (#95)
  • Loading branch information
jeanpaulrsoucy committed Sep 20, 2023
1 parent 7b71323 commit b5803a6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions datasets.json
Original file line number Diff line number Diff line change
Expand Up @@ -6226,8 +6226,8 @@
"id_name": "SK - CRISP (Community Respiratory Illness Surveillance Program) Situation Report (report)",
"uuid": "b22d4896-160d-432b-b02a-ba933d14a58a",
"active": "True",
"url_fun_python": "import re; import requests; url_current = re.search('(?<=href=\")https://www.saskatchewan.ca/-/media/files/crisp-.*\\.pdf(?=\")', requests.get('https://www.saskatchewan.ca/government/health-care-administration-and-provider-resources/treatment-procedures-and-guidelines/emerging-public-health-issues/2019-novel-coronavirus/cases-and-risk-of-covid-19-in-saskatchewan', timeout=5).text).group(0)",
"url_fun_r": "library(rvest); library(stringr); str_extract(as.character(html_node(read_html('https://www.saskatchewan.ca/government/health-care-administration-and-provider-resources/treatment-procedures-and-guidelines/emerging-public-health-issues/2019-novel-coronavirus/cases-and-risk-of-covid-19-in-saskatchewan'), 'body')), '(?<=href=\")https://www.saskatchewan.ca/-/media/files/crisp-.*\\.pdf(?=\")')",
"url_fun_python": "import re; import requests; url_current = re.search('(?<=href=\").*/download(?=\")', requests.get('https://www.saskatchewan.ca/government/health-care-administration-and-provider-resources/treatment-procedures-and-guidelines/emerging-public-health-issues/2019-novel-coronavirus/cases-and-risk-of-covid-19-in-saskatchewan', timeout=5).text).group(0)",
"url_fun_r": "library(rvest); library(stringr); str_extract(as.character(html_node(read_html('https://www.saskatchewan.ca/government/health-care-administration-and-provider-resources/treatment-procedures-and-guidelines/emerging-public-health-issues/2019-novel-coronavirus/cases-and-risk-of-covid-19-in-saskatchewan'), 'body')), '(?<=href=\").*/download(?=\")')",
"dir_parent": "sk",
"dir_file": "respiratory-illness-report",
"file_name": "respiratory-illness-report",
Expand Down

0 comments on commit b5803a6

Please sign in to comment.