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
Hi, I wanted to call attention on this list to a small change [1] in
the api that we just released as part of a security update [2]. We
previously had not set X-Frame-Option headers on the result of api
queries. This could leave a site open to a variety of UI redressing
attacks, so the WMF sites now set the X-Frame-Option: header to 'DENY'
on API results. This will also be the default configuration for new
downloads.
If you need to show the result of an API query in an iframe, you can
set the $wgApiFrameOptions = false to disable the header. However, I
would encourage everyone to keep the header, as it will help prevent
this type of attack.
[1] - https://bugzilla.wikimedia.org/show_bug.cgi?id=39180
[2] - http://lists.wikimedia.org/pipermail/mediawiki-announce/2012-August/000119.…
Hi all,
I am new to wikipedia API.
can you help me with the following:
I want to grep all the content of the "united states of america" to a text file with out images.
I am looking a response in text format.
How can I do that?
looking for: http://en.wikipedia.org/wiki/United_States page contents.
I got this url constructed:
http://en.wikipedia.org/w/api.php?format=xml&action=query&titles=united_sta…
But I am not getting what I want ..:(.may be I am missing some thing basic
I did based on http://en.wikipedia.org/w/api.php..
1.how can I get the content of what ever string I give in the query?
please help me with the url.
2. I am trying to have this in a text file. can I get the response in the text format? other than xml and json?
3. In the unites_states example, I want to get the first coulm of the citys (
Leading population centers
)
how can I get that .
-pavi
Hi,
I understand how to submit API requests, but I want to be able to make the
following tweaks to the returned results:
* delete images & captions from returned pages?
* delete warning notices?
* delete [edit] text
Any ideas?
Fred Zimmerman
---
*The very best place for news about Nimble: *http://www.quora.com/ncp
Greetings,
If I'm reading http://www.mediawiki.org/wiki/API:E-mail correctly,
there appear to be no (technical) restrictions preventing anybody
capable of creating a MediaWiki account from spamming every user with
a registered mailing address. Please tell me I'm wrong, and I'm not
going to wake up some day to an avalanche of Wikipedia e-mail about
Viagra and penis extensions in my inbox?
I'm asking because I'm about to add an email operation to my
MediaWiki::Gateway Ruby gem, and would prefer that this not be used
for evil.
Cheers,
-jani
The behavior of the ignorewarnings parameter in action=upload was
changed [1] recently. The ignorewarnings parameter causes an upload to
go through even if there were (non-fatal) warnings. Previously, it
also removed the warnings from the API output, but with Mark's recent
change, these warnings will now be shown. Clients that check for
"Success" or "Warning" shouldn't break, but clients that only check
for the <warnings> element to see if an upload failed may start
failing.
This change will be part of the 1.20wmf9 deployment, which will go
live on WMF wikis in stages between August 6 and August 13 [2].
Roan
[1] https://gerrit.wikimedia.org/r/#/c/9261/
[2] https://www.mediawiki.org/wiki/MediaWiki_1.20/Roadmap#Schedule_for_the_depl…
_______________________________________________
Mediawiki-api-announce mailing list
Mediawiki-api-announce(a)lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-api-announce