Skip to content

Instantly share code, notes, and snippets.

@spoonerf
spoonerf / mpox_shiny_africa.R
Created September 20, 2024 15:59
Download mpox data for Africa from WHO Shiny App
library(httr)
library(rvest)
library(base64enc)
library(readr)
get_shiny_data <- function() {
url <- "https://worldhealthorg.shinyapps.io/mpx_global/#26_Case_definitions" # URL of the webpage
import wikipedia
import pandas as pd
import tempfile
import zipfile
import os
import json
from owid import walden
@spoonerf
spoonerf / sdg_download.py
Created November 22, 2021 11:57
Download UN SDG indicators
import requests
import json
import pandas as pd
from io import BytesIO
base_url = "https://unstats.un.org/sdgapi"
url = f"{base_url}/v1/sdg/Goal/List"
res = requests.get(url)
assert res.ok
@spoonerf
spoonerf / 2021-09-08 WHO Global Health Estimates.ipynb
Created September 8, 2021 12:04
Downloading Global Health Estimates data from WHO API
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.