From 62fce8f1ee16c6dbb851f9847263bc1cd5f5dd51 Mon Sep 17 00:00:00 2001 From: Ben Kurtovic Date: Thu, 1 Nov 2018 01:06:09 -0400 Subject: [PATCH] Apply previous commit (59369e3) to docs [ci skip] --- docs/integration.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/integration.rst b/docs/integration.rst index af3abc9..c1c1f39 100644 --- a/docs/integration.rst +++ b/docs/integration.rst @@ -32,7 +32,7 @@ If you're not using a library, you can parse any page using the following code "rvprop": "content", "format": "json", "titles": title} raw = urlopen(API_URL, urlencode(data).encode()).read() res = json.loads(raw) - text = res["query"]["pages"].values()[0]["revisions"][0]["*"] + text = list(res["query"]["pages"].values())[0]["revisions"][0]["*"] return mwparserfromhell.parse(text) .. _EarwigBot: https://github.com/earwig/earwigbot