Ejemplo n.º 1
0
        private void GetDataFromVstupInfo()
        {
            errorsLog.StartLog();
            HtmlNodeCollection districtNodes = parser.RetreiveNodes(nodesXpaths["DistricstNode"]);

            foreach (HtmlNode node in districtNodes)
            {
                //After "Дніпропетровська" and "Одеcька" node.InnerText == "";
                //In this places empty node <a></a>
                if (node.InnerText != string.Empty)
                {
                    saver.SaveDistrict(parser.GetDistrict(districtID, node.InnerText));
                    parser.ChangeUrl(indexPage + node.Attributes["href"].Value);
                    StarsProcessUniversities();
                }
                districtID++;
            }
            errorsLog.EndLog();
        }