Welcome Guest Search | Active Topics | Members | Log In | Register

Using Wikipedia API in ASP.NET pages Options · View
cyberviral
#1 Posted : Thursday, September 04, 2008 12:23:20 AM
Rank: Administration



Groups: Administration

Joined: 1/4/2007
Posts: 59
Points: 167
Location: Chennai
Wikipedia API and Wikipedia Content Access Helpusing wikipedia web services

Welcome one and all, We found that our developer network is facing a lots of problems in parsing the wiki content and accessing them from the wikipedia repository. Right now (09/2008) there is no best wiki parser available on market. And moreover no open source alternative is also there as far is ASP.NET is concern. Here we will be discussing about this as a topic and ensure we come up with more and more innovations towards this task.


To earn money online is easy, our website finds it difficult to learn it
senthil
#2 Posted : Thursday, September 04, 2008 12:34:44 AM
Rank: Member

Groups: Member

Joined: 1/3/2007
Posts: 20
Points: -40
There are a many people online who are trying to get a way to Wikipedia API (if any)..i.e to search wikipedia by giving search keyword,

There is a traditional way to do it, using the REST web services in any java or javascript enabled languages, for .NET there are wikipedia web services to do this.. I dont know whethere there is any wikipedia API to accomplish this taks..

The problem is that only a few hand ful of people know that we have a wikipedia web service running for getting content by keywords.

As far as i know the easiest way to access wikipedia content is using Mediawiki API which is just a URL which mush have overloaded query strings about the format , content and other facts that you need to retrieve. there is no function or feature something that you can use it in your application.. only a url is there and that url will extract some content in a junk format.

Is there any way to make thins better ?
cyberviral
#3 Posted : Thursday, September 04, 2008 12:47:23 AM
Rank: Administration



Groups: Administration

Joined: 1/4/2007
Posts: 59
Points: 167
Location: Chennai
there are many wiki parser available online. search for opensource wiki parser, you get a lots of results... but non of them are easy to use, you need to research more on them.

about the url query string there are various formats you can get the data

json, jsonfm, php, phpfm, wddx, wddxfm, xml, xmlfm, yaml, yamlfm, rawfm, txt, txtfm, dbg, dbgfm and the default is xmlfm, yes of course the content is very shabby you need to process it to display better.

api.php?action=query&list=blocks

is the sample API call,

action can be only one value amoung sitematrix, opensearch, login, logout, query, expandtemplates, parse, feedwatchlist, help, paraminfo, rollback, delete, undelete, protect, block, unblock, move, edit, emailuser, watch
the default is 'help',

http://en.wikipedia.org/...n=query&list=blocks

does the job.


To earn money online is easy, our website finds it difficult to learn it
ravi
#4 Posted : Friday, September 05, 2008 4:18:35 PM
Rank: Member

Groups: Member

Joined: 1/15/2007
Posts: 22
Points: 66
Here you go - where i give you all parameters description in a more comprehensive manner

Wikipedia API help


format - The format of the output which is shown when you query in the url in your browser.(till now there is no better wiki format parser), so it will look like some junk content, and it takes only One single value: json, jsonfm, php, phpfm, wddx, wddxfm, xml, xmlfm, yaml, yamlfm, rawfm, txt, txtfm, dbg, dbgfm

action - There are various processes you can perform including sitematrix, opensearch, login, logout, query, expandtemplates, parse, feedwatchlist, help, paraminfo, rollback, delete, undelete, protect, block, unblock, move, edit, emailuser, watch.

version - this is used only When showing help which includes version for each module individually
maxlag - [actually dint work for me]
smaxage - here i gave 0,1, 2 and i found no difference
maxage - Set the max-age header to this many seconds. Errors are never cached
Default: 0
requestid - Request ID is used to distinguish requests.not that much important

here is a sample

api.php?action=query&prop=revisions&titles=Windows|Main%20Page&rvprop=timestamp|user|comment|content

hope this information helps.

Thankx to Roan Kattouw who is the person behind this API.. :-)
Users browsing this topic
Guest
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

FlatEarth Theme by Jaben Cargman (Tiny Gecko)
Powered by YAF | YAF © 2003-2008, Yet Another Forum.NET
This page was generated in 0.701 seconds.