Skip to content

A C# API for searching on Wikipedia

License

Notifications You must be signed in to change notification settings

potnoddle/Wikipedia

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Wikipedia - An implementation of the full text search API of Wikipedia

NuGet

Features

  • Based on RestSharp (http://restsharp.org) to deserialize the Wikipedia XML into objects
  • Support for all 283 languages on Wikipedia
  • Full support for all search parameters

Examples

Here is the simplest form of getting data from Wikipedia:

static void Main()
{
	WikipediaClient client = new WikipediaClient();
	client.Limit = 5;
	
	QueryResult results = wikipedia.Search("Microsoft C#");

	Console.WriteLine("Found " + results.Search.Count + " English results:");

	foreach (Search s in results.Search)
	{
		Console.WriteLine(s.Url);
	}
}

Output:

http://en.wikipedia.org/wiki/Visual C++
http://en.wikipedia.org/wiki/Microsoft Visual C Sharp
http://en.wikipedia.org/wiki/Microsoft Roslyn
http://en.wikipedia.org/wiki/C Sharp (programming language)
http://en.wikipedia.org/wiki/Microsoft Visual Studio

About

A C# API for searching on Wikipedia

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • C# 100.0%