I'm searching for a way to get diffs of revisions starting from some date and limiting the number of results. Or getting all the diffs starting from the current one to the oldest one. The revisions are in pairs diff(Newest,AlmostNew) , diff(AlmostNew,AlmostAlmostNew) ... and so forth. action=history seems to be doing by default for the first 5 http://en.wikipedia.org/w/index.php?title=Language&feed=rss&action=h... I also found a way to get the first 50 http://en.wikipedia.org/w/index.php?title=Language&feed=rss&action=h... But can I get them all ? Can I get all the diffs ? Or diffs starting from a date ?
Thank you
How about getting all revisions of a page and diffing them at your end?
http://ru.wikipedia.org/w/api.php?action=query&prop=revisions&titles...
(you may need more than one query for large pages, as indicated by query-continue)
— Kalan
That wouldn't be very time-effective on my side , the time complexity of diff algorithms is very big and it would be much better if I could get the diffs already calculated.
I found the documentation for action=history here http://www.mediawiki.org/wiki/Manual:Parameters_to_index.php#History I would've expected this link to get diffs from 2007 but it seems it's getting the latest diffs so the offset parameter has no effect http://en.wikipedia.org/w/index.php?title=Perl&feed=rss&action=histo...
What can I do to use offset parameter properly ?
Kalan wrote:
How about getting all revisions of a page and diffing them at your end?
http://ru.wikipedia.org/w/api.php?action=query&prop=revisions&titles...
(you may need more than one query for large pages, as indicated by query-continue)
— Kalan
Mediawiki-api mailing list Mediawiki-api@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-api
On Sat, Jun 13, 2009 at 21:25, randomcoder1@gmail.com wrote:
the time complexity of diff algorithms is very big
Same here, so why do you expect that overloaded Wikimedia servers do the job for you? :)
I would've expected this link to get diffs from 2007 but it seems it's getting the latest diffs so the offset parameter has no effect http://en.wikipedia.org/w/index.php?title=Perl&feed=rss&action=histo...
RSS is a format for delivering updates, not for transfering data, so it’s quite reasonable that offset doesn’t work…
— Kalan
Kalan wrote:
I would've expected this link to get diffs from 2007 but it seems it's getting the latest diffs so the offset parameter has no effect http://en.wikipedia.org/w/index.php?title=Perl&feed=rss&action=histo...
RSS is a format for delivering updates, not for transfering data, so it’s quite reasonable that offset doesn’t work…
The documentation says it's there and it should work if it's there , have you used the offset parameter in such a situation ?
— Kalan
On Sat, Jun 13, 2009 at 21:47, randomcoder1@gmail.com wrote:
The documentation says it's there and it should work if it's there ,
Search for “function feed” in http://svn.wikimedia.org/viewvc/mediawiki/trunk/phase3/includes/PageHistory.... — the offset for fetchRevisions is deliberately set to 0 because of the reason I have stated earlier.
— Kalan
Kalan wrote:
Search for “function feed” in http://svn.wikimedia.org/viewvc/mediawiki/trunk/phase3/includes/PageHistory.... — the offset for fetchRevisions is deliberately set to 0 because of the reason I have stated earlier.
Thanks a lot Kalan ! That was very informative :)
mediawiki-api@lists.wikimedia.org