Skip to content

Commit

Permalink
Update ICES dashboard datasets
Browse files Browse the repository at this point in the history
  • Loading branch information
jeanpaulrsoucy committed Jun 24, 2023
1 parent 098d428 commit a01a508
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions datasets.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand All @@ -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",
Expand Down

0 comments on commit a01a508

Please sign in to comment.