Hi,
I have modified the get.py modul of the pywikibot. The purpose is to display the date of creation of the article. I guessed from wikipedia.py that I need either page.getVersionHistory(), which is a list, or page.getVersionHistoryTable(), which gives the history as a wikitable.
Now it seems to work, but sometimes it gives back a shorter page history, than the real one, and, unfortunately, sometimes both methods give an empty page history, and thus en error in the program flow.
Here are some concerned pages: [[hu:Ehrenfeld Samu]] (http://hu.wikipedia.org/wiki/Ehrenfeld_Saul) and [[hu:TCSEC]] (http://hu.wikipedia.org/wiki/TCSEC) seems to have a completely empty page history, which is not true and results in an error. (Theoretically, no article could exist with an empty history.) [[hu:Mark VII]] (http://hu.wikipedia.org/wiki/Mark_VII) displays only one line, just as it had a single-edit history.
Where is the mistake?
I attach proba.py which is the modified version of get.py. I hope you will not take my head for that, it's very small. :-) The Hungarian comments are not relevant, the essence is written here. An article can be given as a command line parameter.
Thanks!
Although nobody replied, I share the result of my experiments. You have to know, tehat on huwiki we introduced FlaggedRevs ( http://www.mediawiki.org/wiki/Extension:FlaggedRevs).
Now, getVersionHistoryTable() and getVersionHistory() give back only the unrevised versions, and none of the revised! fullVersionHistory() seems to work correctly for each version IF the page has ANY unrevised versions; but it results in an "out of range" error if the page has only revised versions. None of these methods gives the edit comments. In getVersionHistoryTable() they appear as <nowiki></nowiki>, and in getVersionHistory() as u''.