Template talk:FIDE world rankings/women
Appearance
JS code to generate json
As of 2021 January this works on here
normalizeName = (name) => name.split(", ")[1] + " " + name.split(", ")[0];
data=$("#div_output tbody tr")
.map((a, b) => ({
name:normalizeName($(b).find("td:nth-child(2)").text()),
rank:$(b).find("td:nth-child(1)").text(),
rating:$(b).find("td:nth-child(4)").text(),
country:$(b).find("td:nth-child(3)").text().trim()}))
.slice(0, 20)
.toArray();
JSON.stringify(data);