I want to develop a desktop application using (any programming language)C#.NET; the requirement is to show the answer to a question in a text view as Google does when someone searches any question like shown in the image.
I want to extract the text in bold from Google search so that I can store that in my app and show the user the result in my app
There are 2 options for it:
1. HTML parsing
You need to get the HTML code, then process it to find the signiture of the so called "top results".
You can use code like this example to get the HTML code:
This will give you the returned HTML code from the website.
To extract of the top result you can use some HTML parser like discussed here: What is the best way to parse html in C#?
2. GOOGLE API
You can also use the google API:
and then