wikitools
wikitools copied to clipboard
Python package for working with MediaWiki wikis
``` >>> import wikitools >>> site = wikitools.wiki.Wiki('http://biografias.bcn.cl/api.php') Invalid JSON, trying request again Invalid JSON, trying request again Invalid JSON, trying request again Invalid JSON, trying request again Invalid JSON,...
Hi Alex, I noticed for the first time this error: ``` from wikitools import wiki from wikitools import api wiki.Wiki("https://en.wikipedia.org/w/api.php") # error: HTTPError: HTTP Error 400: Browser Connection Security Warning...
``` from wikitools import * s = wiki.Wiki('https://aquanautweb.de/testwiki/api.php') ``` results in ``` ==== RESTART: C:\Users\XXXXXXX\test_wikitools.py ==== URLError: trying request again in 5 seconds URLError: trying request again in 10 seconds...
Case in point: Wikia runs MediaWiki 1.19. I want to use queryGen() for https://github.com/WikiTeam/wikiteam/issues/311 to be future-proof, but I can't because it fails to pick up `query-continue` in a query...
wikisource@wikisource-Inspiron-3542:~$ cd Desktop wikisource@wikisource-Inspiron-3542:~/Desktop$ cd ~/OCR4wikisource-master wikisource@wikisource-Inspiron-3542:~/OCR4wikisource-master$ python do_ocr.py INFO:__main__:Running do_ocr.py 1.54 INFO:root:Operating System = "Ubuntu 16.04.4 LTS" INFO:__main__:URL = https://upload.wikimedia.org/wikipedia/commons/d/dd/Alochana_Magazine_October_1958.pdf INFO:__main__:Columns = 1 INFO:__main__:Wiki Username = Gurlal (Bot) INFO:__main__:Wiki...
How to iterate all items on Category when categoey contain more one page? getAllMemberGen() provide only items from first page.
Python 3 support would be really nice...
In a Python 3 project, I used to install ``wikitools`` by adding a line in ``requirements.txt`` pointing to the ``py3`` branch looking this this: -e git+https://github.com/alexz-enwp/wikitools.git@py3#egg=wikitools This works fine for...
Another (better) way of working around #50 ...
One possible way of how to work around #50 ...