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.
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
Dear Mediawiki-Api,I strongly recommend this website www.justdial.com. It's a world class local search service & I've always found anything I've ever wanted.You can find info on any company, product, or service in over 240 cities in India.You can also call them up 24x7, on phone (69999999), a local call in 240 Indian cities.Ask for anything, you'll get the info on the phone and/or by SMS within 30 secs, and this service is at no cost!For a change, it's an original Indian idea and an Indian company with world class service, and with a vision to spread all over the world.Be a proud Indian and forward this to every Indian you know.Best Wishes,Sauravmoy SarkarClick Here to unsubscribe.
I've temporarily solved the problem by calling wfExpandUrl() on the
relative url being returned. I'd like to know the proper way to go
about this though.
Obsessive MathsFreak wrote:
> I'm currently trying to use the api to give me a url to a requested
> resized image on my wiki.
> However, the system is currently only giving me a relative url, not a
> complete one. The attribute "thumburl" in the ii tag on this page is
> I'd like the thumburl to be complete, as in this Wikipedia page
> What setting to I need to alter in order to canonically bring this change about?
> I'm using Mediawiki 1.15.1
May The Maths Be With You