示例#1
0
        private Int64 SearchEngineGoogle(string words)
        {
            //String words = "c%23+query+google";
            //String words = txtWords.Text;
            String         mpath = "https://www.google.com.pe/search?source=hp&ei=Abq4WpunEIuG5wL_3YvgCA&q=";
            BeanAnswer     ent   = new BeanAnswer();
            BeanSent       snt   = new BeanSent();
            EngineBusiness obj   = new EngineBusiness();

            snt.Words     = words;
            snt.MainPath  = mpath;
            snt.Operation = ConfigurationEN.GoogleSearch;
            ent           = obj.QuerySearchEngine(snt);
            //lblGoogleResults.Text = ent.Total.ToString();
            return(ent.Total);
        }
示例#2
0
        private Int64 SearchEngineMsn(string words)
        {
            //String words = "c%23+query+google";
            //String words = txtWords.Text;
            String         mpath = "https://www.bing.com/search?q=";
            BeanAnswer     ent   = new BeanAnswer();
            BeanSent       snt   = new BeanSent();
            EngineBusiness obj   = new EngineBusiness();

            snt.Words     = words;
            snt.MainPath  = mpath;
            snt.Operation = ConfigurationEN.BingSearch;
            ent           = obj.QuerySearchEngine(snt);
            //lblMsnResults.Text = ent.Total.ToString();
            return(ent.Total);
        }