Parcourir la source

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

tags/v0.5.2
Ben Kurtovic il y a 5 ans
Parent
révision
62fce8f1ee
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. +1
    -1
      docs/integration.rst

+ 1
- 1
docs/integration.rst Voir le fichier

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


Chargement…
Annuler
Enregistrer