Dear Members,
I'm using mediawiki API to get a result with the following code: http://en.wikipedia.org/w/api.php?action=opensearch&search=pc&limit=...
But if you look at this link: http://en.wikipedia.org/wiki/PC there is description like this: PC most commonly refers to: * Personal computer, a computer whose original sales price, size, and capabilities make it useful for individuals * Political correctness, language or behavior that appears calculated to provide a minimum of offense
but with my API, I cannot get such a result. Please help me, how can i change my API to get a result like above.
Actually, I want to send an acronym word (e.g. PC) via API and get the suggestions. (e.g: Personal computer, Political Correctness)
Please help me to find a solution for that, I searched a lot and I could not find any solution for that.
Yours Sincerely Sasan Moshksar
On Wed, Feb 1, 2012 at 7:29 PM, Parsa parsaj00n@yahoo.com wrote:
Dear Members,
I'm using mediawiki API to get a result with the following code: http://en.wikipedia.org/w/api.php?action=opensearch&search=pc&limit=...
But if you look at this link: http://en.wikipedia.org/wiki/PC there is description like this: PC most commonly refers to: * Personal computer, a computer whose original sales price, size, and capabilities make it useful for individuals * Political correctness, language or behavior that appears calculated to provide a minimum of offense
but with my API, I cannot get such a result. Please help me, how can i change my API to get a result like above.
Actually, I want to send an acronym word (e.g. PC) via API and get the suggestions. (e.g: Personal computer, Political Correctness)
Please help me to find a solution for that, I searched a lot and I could not find any solution for that.
The opensearch API does title matches *only*. If you want to search in the content of pages as well, you should use list=search.
Roan
Thanks for your answer but I do not want to search contents, for example, I want to get the following page in XML form when user search a word "PC".
http://en.wikipedia.org/wiki/PC
-- View this message in context: http://wikimedia.7.n6.nabble.com/Search-acronym-words-tp4357006p4359379.html Sent from the WikiMedia API mailing list archive at Nabble.com.
Why can you not simply http://en.wikipedia.org/w/api.php?action=query&prop=revisions&titles... On Feb 1, 2012 1:29 PM, "Parsa" parsaj00n@yahoo.com wrote:
Dear Members,
I'm using mediawiki API to get a result with the following code:
http://en.wikipedia.org/w/api.php?action=opensearch&search=pc&limit=...
But if you look at this link: http://en.wikipedia.org/wiki/PC there is description like this: PC most commonly refers to: * Personal computer, a computer whose original sales price, size, and capabilities make it useful for individuals * Political correctness, language or behavior that appears calculated to provide a minimum of offense
but with my API, I cannot get such a result. Please help me, how can i change my API to get a result like above.
Actually, I want to send an acronym word (e.g. PC) via API and get the suggestions. (e.g: Personal computer, Political Correctness)
Please help me to find a solution for that, I searched a lot and I could not find any solution for that.
Yours Sincerely Sasan Moshksar
Mediawiki-api mailing list Mediawiki-api@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-api
Thanks, your solution is working with my idea do you know, how can I parse it? (in .Net)
-- View this message in context: http://wikimedia.7.n6.nabble.com/Search-acronym-words-tp4357006p4359428.html Sent from the WikiMedia API mailing list archive at Nabble.com.
All the links of the page are given by http://en.wikipedia.org/w/api.php?action=query&titles=PC&prop=links&...
2012/2/2 parsaj00n parsaj00n@yahoo.com
Thanks, your solution is working with my idea do you know, how can I parse it? (in .Net)
-- View this message in context: http://wikimedia.7.n6.nabble.com/Search-acronym-words-tp4357006p4359428.html Sent from the WikiMedia API mailing list archive at Nabble.com.
Mediawiki-api mailing list Mediawiki-api@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-api
You could parse the wikitext using:
http://en.wikipedia.org/w/api.php?action=parse&text=__NOEDITSECTION__%7B...
Or you could bypass the API altogether using:
http://en.wikipedia.org/wiki/PC?action=render
Good luck, Jim
On Thu, Feb 2, 2012 at 11:05 AM, Hercule Hercule hercule.wikipedia@gmail.com wrote:
All the links of the page are given by http://en.wikipedia.org/w/api.php?action=query&titles=PC&prop=links&...
2012/2/2 parsaj00n parsaj00n@yahoo.com
Thanks, your solution is working with my idea do you know, how can I parse it? (in .Net)
-- View this message in context: http://wikimedia.7.n6.nabble.com/Search-acronym-words-tp4357006p4359428.html Sent from the WikiMedia API mailing list archive at Nabble.com.
Mediawiki-api mailing list Mediawiki-api@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-api
Mediawiki-api mailing list Mediawiki-api@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-api
Thanks Jim for your suggestion but I would like to read the following API in ASP.Net(C#):
http://en.wikipedia.org/w/api.php?action=query&prop=revisions&titles...
Is there any document or solution to parse MediaWiki-API (XML) in ASP.Net(C#)?
-- View this message in context: http://wikimedia.7.n6.nabble.com/Search-acronym-words-tp4357006p4359516.html Sent from the WikiMedia API mailing list archive at Nabble.com.
mediawiki-api@lists.wikimedia.org