(m, v) -> m.put(v.getString("title"), v.has("categoryinfo") ? v.getJSONObject("categoryinfo").getInt("size") : -1),
HashMap::putAll);
}
public static HashMap<String, String> getPageText(Wiki wiki, ArrayList<String> titles)
{
<BUG>RSet rs = new SQ(wiki, FL.pMap("prop", "revisions", "rvprop", "content")).multiTitleQuery("titles", titles);
</BUG>
return rs.getJOofJOStream("pages").collect(HashMap::new, (m, v) -> m.put(v.getString("title"),
v.has("revisions") ? v.getJSONArray("revisions").getJSONObject(0).getString("*") : ""), HashMap::putAll);
}

(m, v) -> m.put(v.getString("title"), v.has("categoryinfo") ? v.getJSONObject("categoryinfo").getInt("size") : -1),
HashMap::putAll);
}
public static HashMap<String, String> getPageText(Wiki wiki, ArrayList<String> titles)
{
RSet rs = SQ.with(wiki, FL.pMap("prop", "revisions", "rvprop", "content")).multiTitleQuery("titles", titles);
return rs.getJOofJOStream("pages").collect(HashMap::new, (m, v) -> m.put(v.getString("title"),
v.has("revisions") ? v.getJSONArray("revisions").getJSONObject(0).getString("*") : ""), HashMap::putAll);
}
