I am writing Qt program in which I can give key word of query and program first generate wikipedia link matching the query and then store data from generated link page into file.
Below is link where I can get my query matching link
QString wikiLink = "http://en.wikipedia.org/w/api.php?action=opensearch&search="
+ soName.replace(" ", "_").toLower() + "_" + soType.toLower()
+ "&format=xml&limit=1";
If my soName and soType are Auriga and Constellation than wikilink is as follow:
http://en.wikipedia.org/w/api.php?action=opensearch&search=auriga_constellation&format=xml&limit=1
Now how can I extract link of my desired article from above link page and then extract data from that article on that link?