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
Hi all,
looking at https://dumps.wikimedia.org/commonswiki/latest/, I'm not able to
find where information about copyright, assessments, license, attribution,
url are.
Inside image table in img_metadata field there are other image information
but not the one said before.
If I call the url
https://en.wikipedia.org/w/api.php?action=query&format=xml&prop=imageinfo&t…
I can see all theese information
Which is the dump that stores copyright, assessments, license, attribution,
url...?
Thank you.
Best,
Luca
As of 1.27.0-wmf.22 (deployed to WMF wikis April 26-28) and MediaWiki
release 1.27 (specifically, this change
<https://phabricator.wikimedia.org/rECHOb10bd700333d2eef10c7df0a9946b87fd451…>
in Echo), meta=notifications will return its result as an array rather than
an object.
Previously, the meta=notifications output looked like:
{
"query": {
"notifications": {
"list": {
"12345": {
"id": "12345",
"type": "edit-user-talk",
...
},
...
}
Now, it looks like:
{
"query": {
"notifications": {
"list": [
{
"id": "12345",
"type": "edit-user-talk",
...
},
...
]
My apologies for the late announcement, and thanks to APerson and Cienca Al
Poder for noticing <https://phabricator.wikimedia.org/T138690> and
encouraging me to write this announcement.
_______________________________________________
Mediawiki-api-announce mailing list
Mediawiki-api-announce(a)lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-api-announce
Hi,
Is it possible to know through the API what is the maximum allowed size for
an article on a given wiki ?
One of the task of my bot is to update maintenance pages with a list of
pages containing some types of errors, and sometimes the produced list is
bigger than the maximum allowed size for an article (2MB), so the API
returns a "contenttoobig" error. Is it possible to know what the limit is
before hitting it ?
Currently, I'm trimming the result progressively until the API stops
complaining about the size...
Nico
https://en.wikipedia.org/wiki/Wikipedia:CHECKWIKI/WPC_002_dump
Hi all,
I'm trying to call wikimedia api whithout success.
Everything works fine until today. I could call api and get results.
>From today, when I call the api, it keep loading without return any result.
I checked here
https://en.wikipedia.org/w/api.php?action=spamblacklist&url=http://freetous…
to see if the url is banned but everything seems ok.
Is there another way to check if my ip is banned?
Best,
Luca