ソースを参照

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

tags/v0.5.2
Ben Kurtovic 5年前
コミット
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


読み込み中…
キャンセル
保存