Example #1
0
        public async Task <long> GetResult(string query)
        {
            RequestSender req      = new RequestSender();
            var           response = await req.GetContentAsString($"https://www.bing.com/search?q={Util.formarQuery(query)}");

            return(ProcessContent(response));
        }
        public async Task <long> GetResult(string query)
        {
            RequestSender req      = new RequestSender();
            var           response = await req.GetContentAsString($"https://www.googleapis.com/customsearch/v1?key={GOOGLE_API_KEY}&cx={GOOGLE_CONTEXT_SEARCH}&q={Util.formarQuery(query)}");

            return(ProcessContent(response));
        }