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
Dear Team,
I am planning to start a new website containing celebrities from different
areas like in sports, movies and politics. For this I am planning to exract
data from Wikipedia using API in XML or JSON format. Can someone send me
Wikipedia API and the format of response I get? I am pretty much new to
this type of technical stuff. I tried going through the document but could
not understand much in detail. An example format will be of great use.
Thanks in advance.
Regards
M.Krishna Kranth
Team works means more We less Me.
Hello All!
Is that possible to get list containing all Wiktionary words of given
language through API? I have been looking on api documentation for
this but found no solution.
thanks
Lukasz
Hi,
if I'm making a query using one of the prop modules, can I rely on the
fact that all results for certain page will be together in the API
pages?
In other words, if I find some results for some page on API page n and
no results on API page n+1, can I be sure there will be no results on
pages > n?
Why do I want to know this:
I am writing a library to access the API and every collection in my
library is lazy.
For example, a user requests to know categories of pages in
Category:Query languages.
When he starts iterating over the result, I execute the query:
http://en.wikipedia.org/w/api.php?action=query&generator=categorymembers&gc…
When he then requests to know the categories of the third page in the
result (Access query language),
I will return to him the categories from the first query. If he
requests more, I execute the query:
http://en.wikipedia.org/w/api.php?action=query&generator=categorymembers&gc…
This query doesn't give me any new categories for that page.
My question is: can I be sure that I won't get any further results for
this page, if I continue to increment clcontinue?
I think the answer is yes in this specific case, because the first
part of clcontinue is pageid,
but I am interested in the general answer: does the same apply for all
prop modules?
Thanks,
Petr Onderka
[[en:User:Svick]]