###Introduction This code repository include lightweight C# source projects. Each project is desined to:

  • Be self-contained and independeng
  • Fulfil single-purpose
  • Be minimized
  • Be ready for Copy & Paste

The following projects are currently included:


###GoogleSearch: Google Custom Search using C#

Tutorials here.

string query = "The University of Hong Kong";
var results = GoogleSearch.Search(query);
foreach (Result result in results)
{
    Console.WriteLine("-----------------------------------");
    Console.WriteLine("Title: {0}", result.Title);
    Console.WriteLine("Link: {0}", result.Link);
}

GoogleSearch

Note that you need to install Goolge Custom Search API using below Nuget Package
PM> Install-Package Google.Apis.Customsearch.v1


###GoogleBookSearch

Tutorials here.

string isbn = "0071807993";
var output = BookSearch.SearchISBN(isbn);
Console.WriteLine("Book Name: \t" + result.VolumeInfo.Title);
//result.VolumeInfo.Title
//result.VolumeInfo.Authors.FirstOrDefault();
//result.VolumeInfo.Publisher;

GoogleBookSearch

Note that you need to install Goolge Books API using below Nuget Package
PM> Install-Package Google.Apis.Books.v1


###BingSearch Tutorials here.

List<SearchResult> result = BingWebSearcher.Search(keyword);
//result.Name: the name of the search result
//result.Link: the link of the search result

![Bing Web Search in C#] (https://xinyustudio.files.wordpress.com/2016/12/bingsearch.gif)