|
@@ -149,7 +149,7 @@ If you're using Pywikibot_, your code might look like this:: |
|
|
text = page.get() |
|
|
text = page.get() |
|
|
return mwparserfromhell.parse(text) |
|
|
return mwparserfromhell.parse(text) |
|
|
|
|
|
|
|
|
If you're not using a library, you can parse any page using the following code |
|
|
|
|
|
|
|
|
If you're not using a library, you can parse any page using the following Python 3 code |
|
|
(via the API_):: |
|
|
(via the API_):: |
|
|
|
|
|
|
|
|
import json |
|
|
import json |
|
|