I'm not sure diffs are going to be useful here. For example, this diff
<https://en.wikipedia.org/w/index.php?title=User:RoySmith/sandbox&diff=1031413484&oldid=1031413445&diffmode=source>
ostensibly introduces an error in the math markup, but due to the way I've formatted
the wikisource, it's not obvious from the diff that this is within
<math>...</math> tags.
You might end up having to do this using the database dumps
<https://meta.wikimedia.org/wiki/Data_dumps>, which is going to entail looking at a
lot more data (extreme understatement) than the recent changes stream.
On Jul 1, 2021, at 9:18 AM, Robin Hood
<RobinHood70(a)LIVE.CA> wrote:
I’m no expert, but I believe the only way to get a diff via the API is
throughhttps://www.mediawiki.org/wiki/API:Compare
<https://www.mediawiki.org/wiki/API:Compare>. I haven’t worked with it to any great
degree, though, so I’m afraid I can’t help beyond pointing you in that direction.
From: Physikerwelt <wiki(a)physikerwelt.de <mailto:wiki@physikerwelt.de>>
Sent: July 1, 2021 8:17 AM
To: Wikimedia developers <wikitech-l(a)lists.wikimedia.org
<mailto:wikitech-l@lists.wikimedia.org>>
Cc: andre.greiner-petter <andre.greiner-petter(a)zbmath.org
<mailto:andre.greiner-petter@zbmath.org>>; Aaron Halfaker
<ahalfaker(a)wikimedia.org <mailto:ahalfaker@wikimedia.org>>
Subject: [Wikitech-l] Stream of recent changes diffs
Dear all,
we have developed a tool that is (in some cases) capable of checking if formulae in
<math/>-tags in the context of a wikitext fragment are likely to be correct or not.
We would like to test the tool on the recent changes. From
https://www.mediawiki.org/wiki/API:Recent_changes_stream
<https://www.mediawiki.org/wiki/API:Recent_changes_stream>
we can get the stream of recent changes. However, I did not find a way to get the diff
(either in HTML or Wikitext) to figure out how the content was changed. The only option I
see is to request the revision text manually additionally. This would be a few unnecessary
requests since most of the changes do not change <math/>-tags. I assume that others,
i.e., ORES
https://www.mediawiki.org/wiki/ORES <https://www.mediawiki.org/wiki/ORES>,
compute the diffs anyhow and wonder if there is an easier way to get the diffs from the
recent changes stream without additional requests.
All the best
Physikerwelt (Moritz Schubotz)
_______________________________________________
Wikitech-l mailing list -- wikitech-l(a)lists.wikimedia.org
<mailto:wikitech-l@lists.wikimedia.org>
To unsubscribe send an email to wikitech-l-leave(a)lists.wikimedia.org
<mailto:wikitech-l-leave@lists.wikimedia.org>
https://lists.wikimedia.org/postorius/lists/wikitech-l.lists.wikimedia.org/
<https://lists.wikimedia.org/postorius/lists/wikitech-l.lists.wikimedia.org/>