Просмотр исходного кода

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

tags/v0.5.2
Ben Kurtovic 5 лет назад
Родитель
Сommit
62fce8f1ee
1 измененных файлов: 1 добавлений и 1 удалений
  1. +1
    -1
      docs/integration.rst

+ 1
- 1
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


Загрузка…
Отмена
Сохранить