Пример #1
0
        public List <SearchRecord> FindTopPosition(string p_SiteURL, string p_Keyword, int p_MaxRecords)
        {
            string l_Url = ParserUrl(Constants.SEARCHPARAMS.GOOGLE_SEARCH_URL, p_Keyword, p_MaxRecords);

            Log4netWrapper.Debug("Complete google Search URL with params : " + l_Url);

            string l_WebResponse = _NetworkManager.GetWebResponse(l_Url);

            if (!string.IsNullOrEmpty(l_WebResponse))
            {
                Log4netWrapper.Debug("Web response found for : " + l_Url);

                return(ParseResults(l_WebResponse, p_SiteURL));
            }
            else
            {
                Log4netWrapper.Debug("Web response not found for : " + l_Url);
                return(null);
            }
        }