diff --git a/datasets.json b/datasets.json index df378777..f6da4a48 100644 --- a/datasets.json +++ b/datasets.json @@ -5849,8 +5849,8 @@ "id_name": "ON - ICES dashboard vaccine coverage estimates for selected age groups by FSA", "uuid": "cd168371-86f5-41f3-9555-580cd50f9b3a", "active": "True", - "url_fun_python": "import re; from bs4 import BeautifulSoup; import requests; headers = {'User-Agent': 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10.14; rv:66.0) Gecko/20100101 Firefox/66.0'}; url_current = BeautifulSoup(requests.get('https://www.ices.on.ca/dashboards/covid-19-dashboard/', headers=headers, timeout=5).text, features='html.parser').find('a', href=re.compile('https://www.ices.on.ca/.*ICES_COVID19_Vaccination_Data_by_FSA.*\\.xlsx')).attrs['href']", - "url_fun_r": "library(rvest); links <- html_elements(read_html('https://www.ices.on.ca/dashboards/covid-19-dashboard/'), 'a'); linkshref <- html_attr(links, 'href'); html_attr(links[grep('https://www.ices.on.ca/.*ICES_COVID19_Vaccination_Data_by_FSA.*\\.xlsx', linkshref)][1], 'href')", + "url_fun_python": "import re; from bs4 import BeautifulSoup; import requests; headers = {'User-Agent': 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10.14; rv:66.0) Gecko/20100101 Firefox/66.0'}; url_current = BeautifulSoup(requests.get('https://www.ices.on.ca/dashboards/covid-19-dashboard/', headers=headers, timeout=5).text, features='html.parser').find('a', href=re.compile('https://www.ices.on.ca/.*ICES-COVID19-Vaccination-Data-by-FSA.*\\.xlsx')).attrs['href']", + "url_fun_r": "library(rvest); links <- html_elements(read_html('https://www.ices.on.ca/dashboards/covid-19-dashboard/'), 'a'); linkshref <- html_attr(links, 'href'); html_attr(links[grep('https://www.ices.on.ca/.*ICES-COVID19-Vaccination-Data-by-FSA.*\\.xlsx', linkshref)][1], 'href')", "dir_parent": "on", "dir_file": "ices-vaccine-coverage-by-age-group-and-fsa", "file_name": "ICES-COVID19-Vaccination-Data-by-FSA", @@ -5875,8 +5875,8 @@ "id_name": "ON - ICES dashboard vaccine coverage estimates by priority groups", "uuid": "ba6788e6-b1d9-4e9f-a65b-16d7c100044f", "active": "True", - "url_fun_python": "import re; from bs4 import BeautifulSoup; import requests; headers = {'User-Agent': 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10.14; rv:66.0) Gecko/20100101 Firefox/66.0'}; url_current = BeautifulSoup(requests.get('https://www.ices.on.ca/dashboards/covid-19-dashboard/', headers=headers, timeout=5).text, features='html.parser').find('a', href=re.compile('https://www.ices.on.ca/.*ICES_COVID19_Vaccine_Coverage_by_Priority_Group.*\\.xlsx')).attrs['href']", - "url_fun_r": "library(rvest); links <- html_elements(read_html('https://www.ices.on.ca/dashboards/covid-19-dashboard/'), 'a'); linkshref <- html_attr(links, 'href'); html_attr(links[grep('https://www.ices.on.ca/.*ICES_COVID19_Vaccine_Coverage_by_Priority_Group.*\\.xlsx', linkshref)][1], 'href')", + "url_fun_python": "import re; from bs4 import BeautifulSoup; import requests; headers = {'User-Agent': 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10.14; rv:66.0) Gecko/20100101 Firefox/66.0'}; url_current = BeautifulSoup(requests.get('https://www.ices.on.ca/dashboards/covid-19-dashboard/', headers=headers, timeout=5).text, features='html.parser').find('a', href=re.compile('https://www.ices.on.ca/.*ICES-COVID19-Vaccine-Coverage-by-Priority-Group.*\\.xlsx')).attrs['href']", + "url_fun_r": "library(rvest); links <- html_elements(read_html('https://www.ices.on.ca/dashboards/covid-19-dashboard/'), 'a'); linkshref <- html_attr(links, 'href'); html_attr(links[grep('https://www.ices.on.ca/.*ICES-COVID19-Vaccine-Coverage-by-Priority-Group.*\\.xlsx', linkshref)][1], 'href')", "dir_parent": "on", "dir_file": "ices-vaccine-coverage-by-priority-group", "file_name": "ICES-COVID19-Vaccine-Coverage-by-Priority-Group",