private void StartSearch(QueryDef query) { _logger.Info("\n\n====== START SEARCH " + DateTime.Now + " ======\n\n"); //Por cada red social a la que apunta la query foreach (var searchEngineName in query.SearchEnginesNamesList) { _logger.Info("\n\n====== START SEARCH FOR (" + searchEngineName + ") " + DateTime.Now + " ======\n\n"); var postsResult = _searchEngineManager.Search(query.Query, new List <string> { searchEngineName }, ParamAccess.ISOLocationCountry, ParamAccess.ISOLanguageCode); foreach (var post in postsResult) { if (_serviceManager.ExistPost(post.UrlPost)) { continue; } _sentimentValuator.ProcessItem(post); post.QueryDef = query; _serviceManager.SavePost(post); } _logger.Info("\n\n===" + postsResult.Count + " POSTs FOUND IN " + searchEngineName + "\n"); } _logger.Info("\n\n====== END QUERY SEARCH " + DateTime.Now + " ======\n\n"); _logger.Info("\n\n====== WAITING FOR ANOTHER TIME ELAPSE ======\n\n"); }