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
When list=allusers is used with auactiveusers, a property 'recenteditcount'
is returned in the result. In bug 67301[1] it was pointed out that this
property is including various other logged actions, and so should really be
named something like "recentactions".
Gerrit change 130093,[2] merged today, adds the "recentactions" result
property. "recenteditcount" is also returned for backwards compatability,
but will be removed at some point during the MediaWiki 1.25 development
cycle.
Any clients using this property should be updated to use the new property
name. The new property will be available on WMF wikis with 1.24wmf12, see
https://www.mediawiki.org/wiki/MediaWiki_1.24/Roadmap for the schedule.
[1]: https://bugzilla.wikimedia.org/show_bug.cgi?id=67301
[2]: https://gerrit.wikimedia.org/r/#/c/130093/
--
Brad Jorsch (Anomie)
Software Engineer
Wikimedia Foundation
_______________________________________________
Mediawiki-api-announce mailing list
Mediawiki-api-announce(a)lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-api-announce
I have posted a similar message on the Wikimedia Developer Support, but
I still can't get my code running, here is my original post:
"I am writing a code to use the MediaWiki web service API to login to
the system. Based on the online API documentation, I used “action=query”
to get a login token and “action=clientlogin” to post the login request,
but I got “Invalid CSRF token” error. I am not sure what I missed, is
there a clientlogin sample code, either html or php or any format?"
My code is JavaScript running in the browser, let me know if anyone
wants to take a look of my testing code.
Regards,
Ren
Hi,
I am trying to get articles belong to WikiProject Democratic Republic of
the Congo. I tried both API calls and Quarry (I guess they shared the same
data source), but did not get any articles back. I wonder if anyone has any
sense what's going for this project in the database? I just used
"Democratic Republic of the Congo" as the query input. Thank you!
Hi,
I am trying to get the articles that are tagged to a particular project
using the API. My code was working like couple months ago, but not any
more.
Below is the url request I make, and it seems that projectpages is no
longer on the API:Lists <https://www.mediawiki.org/wiki/API:Lists> either.
I wonder if anyone would know what's going on, or point me to resources?
Thank you!
URL = 'https://en.wikipedia.org/w/api.php?action=query&format=
json&list=projectpages&wpplimit=500&wppassessments=1&
wppprojects=Military%20history'