From b5803a6b9d9fefc2da2cbbcd3813605c64514266 Mon Sep 17 00:00:00 2001 From: "Jean-Paul R. Soucy" Date: Wed, 20 Sep 2023 19:51:27 -0400 Subject: [PATCH] Revert update to SK report dynamic URL - SK has reverted to their old URL format for the CRISP report (#95) --- datasets.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/datasets.json b/datasets.json index b63a93f9..e2d7f07e 100644 --- a/datasets.json +++ b/datasets.json @@ -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",