Browse Source

Apply previous commit (59369e3) to docs [ci skip]

tags/v0.5.2
Ben Kurtovic 5 years ago
parent
commit
62fce8f1ee
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      docs/integration.rst

+ 1
- 1
docs/integration.rst View File

@@ -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


Loading…
Cancel
Save