GovindChittesh / google-api-for-dotnet

Automatically exported from code.google.com/p/google-api-for-dotnet
0 stars 0 forks source link

No results found... #2

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
While using this API, I don't get any results.

Original issue reported on code.google.com by sundar....@gmail.com on 19 Jul 2008 at 7:20

GoogleCodeExporter commented 9 years ago
Could you please tell me which api do you use?
Can you show me your code for it?

Original comment by iron9li...@gmail.com on 23 Jul 2008 at 1:37

GoogleCodeExporter commented 9 years ago
I downloaded and installed this GoogleSearchAPI_0.1_alpha_6.zip api

And used GwebSearcher.Search method, which returns no results...

Original comment by sundar....@gmail.com on 23 Jul 2008 at 1:02

GoogleCodeExporter commented 9 years ago
I've run all the test cases, they work fine.
Make sure the "count" (parameter) is greater than zero, and your "keywords" is 
not
null or empty. And check your internet connect and firewall.

This is one of my test case.
You can run this for testing.
If anything wrong, show your code here please.

        [Test]
        public void SearchTest()
        {
            int count = 11;
            IList<IWebResult> results = GwebSearcher.Search("Kobe bryant", count);
            Assert.IsNotNull(results);
            foreach (IWebResult result in results)
            {
                Assert.IsNotNull(result);
            }
            Assert.AreEqual(count, results.Count);
        }

Original comment by iron9li...@gmail.com on 24 Jul 2008 at 1:31

GoogleCodeExporter commented 9 years ago
It Works! Great!!

Thanks for your excellent response and support...

Sundar

Original comment by sundar....@gmail.com on 25 Aug 2008 at 5:10

GoogleCodeExporter commented 9 years ago
Well

Original comment by iron9li...@gmail.com on 26 Aug 2008 at 2:18