Hello,
I am writing a Java program to extract the abstract of the wikipedia page
given the title of the wikipedia page. I have done some research and found
out that the abstract with be in rvsection=0
So for example if I want the abstract of 'Eiffel Tower" wiki page then I am
querying using the api in the following way.
http://en.wikipedia.org/w/api.php?action=query&prop=revisions&titles=Eiffel…
and parse the XML data which we get and take the wikitext in the tag <rev
xml:space="preserve"> which represents the abstract of the wikipedia page.
But this wiki text also contains the infobox data which I do not need. I
would like to know if there is anyway in which I can remove the infobox data
and get only the wikitext related to the page's abstract Or if there is any
alternative method by which I can get the abstract of the page directly.
Looking forward to your help.
Thanks in Advance
Aditya Uppu
---------- Forwarded message ---------
From: Jon Robson <jrobson(a)wikimedia.org>
Date: Fri, Sep 11, 2020 at 12:49 PM
Subject: INFO: Announcing removal of noimages parameter from deprecated
action=mobileview API
To: <mediawiki-api-announce(a)lists.wikimedia.org>
The action=mobileview API was marked as deprecated at the end of the 2019
[1]. As we refactor code relating to this API we have decided to remove
support for its `noimages` parameter which allowed users to request a page
with img tags replaced with spans.
Note: The `noimages` parameter also appeared inside the action=parse API
[2] however was a no-op. It will no longer appear on action=parse requests
as a result of this change.
For clients wanting to perform img tag removals, this will need to be done
by those scripts themselves, the PHP code is provided for your reference [3]
If you have any questions or concerns about this change, please feel free
to follow up on the Phabricator ticket [4].
[1] https://phabricator.wikimedia.org/T210808
[2]
https://en.wikipedia.org/wiki/Special:ApiSandbox#action=parse&format=json&p…
[3]
https://gerrit.wikimedia.org/r/c/mediawiki/extensions/MobileFrontend/+/6265…
[4] https://phabricator.wikimedia.org/T262580