library(reticulate) # Use python 3
py_install("wptools")
wptools <- import("wptools")
page <- wptools$page("Lake Peipsi")
res <- page$get_parse()$data["infobox"]
knitr::kable(tidyr::gather(purrr::flatten_df(res)))
key value
name Lake Peipus
native_name {{native name list |tag1|=|et|name1|=|Peipsi-Pihkva järv |tag2|=|ru|name2|=|Чудско-Псковское/Псковско-Чудское озеро}}
image Lake Peipus, LandSat-8, 2016-10-20.jpg
caption Landsat satellite photo
location [[Estonia]], [[Russia]]
coords {{Coord|58|41|N|27|29|E|type:waterbody_scale:2000000|display|=|inline,title}}
inflow [[Emajõgi]], [[Velikaya]]
outflow [[Narva (river)|Narva]]
catchment {{convert|47800|km2|sqmi|abbr|=|on}}
basin_countries [[Estonia]], [[Latvia]], and [[Russia]]
pushpin_map Estonia#Russia Pskov Oblast#European Russia
area {{convert|3555|km2|sqmi|abbr|=|on}}
depth {{convert|7.1|m|ft|abbr|=|on}}
max-depth {{convert|15.3|m|ft|abbr|=|on}}
volume {{convert|25|km3|cumi|abbr|=|on}}
shore {{convert|520|km|mi|abbr|=|on}}
elevation {{convert|30|m|ft|abbr|=|on}}
islands [[Kamenka (island)|Kamenka]], [[Kolpina Island|Kolpina]], [[Piirissaar]]
cities [[Kallaste]], [[Mustvee]]