Last modified: 2009-12-30 05:20:38 UTC

Wikimedia Bugzilla is closed!

Wikimedia has migrated from Bugzilla to Phabricator. Bug reports should be created and updated in Wikimedia Phabricator instead. Please create an account in Phabricator and add your Bugzilla email address to it.
Wikimedia Bugzilla is read-only. If you try to edit or create any bug report in Bugzilla you will be shown an intentional error message.
In order to access the Phabricator task corresponding to a Bugzilla report, just remove "static-" from its URL.
You could still run searches in Bugzilla or access your list of votes but bug reports will obviously not be up-to-date in Bugzilla.
Bug 11865 - Add support for machine-readable diffs
Add support for machine-readable diffs
Product: MediaWiki
Classification: Unclassified
API (Other open bugs)
All All
: Normal enhancement (vote)
: ---
Assigned To: Nobody - You can work on this!
Depends on:
  Show dependency treegraph
Reported: 2007-11-03 21:45 UTC by Kimon Berlin (gribeco)
Modified: 2009-12-30 05:20 UTC (History)
1 user (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Description Kimon Berlin (gribeco) 2007-11-03 21:45:44 UTC
The mediawiki API does not support machine-readable diffs yet. This would allow a bot to parse changes for vandalism, spam, or other particular content.

The current human-readable diff has lots of html cruft that has to be stripped to get to the real data, as well as unnecessary data for  a bot (headers, menus, the entire text following the diff...)
Comment 1 Platonides 2007-11-03 21:56:19 UTC
Stripping all html you get a machine diff.
Adding &action=render you omit headers and menus
Adding &diffonly=1 you get the diff without the rendered page.

So with action=render&diffonly=1 you only get the diff table.
Comment 2 Kimon Berlin (gribeco) 2007-11-03 22:27:02 UTC
Good enough. Thanks!

Note You need to log in before you can comment on or make changes to this bug.