예제 #1
0
        public static string GetCoinsHeader(string body)
        {
            var htmlDoc = new HtmlDocument();

            htmlDoc.LoadHtml(body);

            var node = htmlDoc.DocumentNode.SelectSingleNode("//*[@id=\"navbar\"]/ul[2]/li[1]/a/i");

            return(StringTreatement.DeleteWhiteSpace(node.InnerText));
        }
예제 #2
0
        /// <summary>
        /// Get home coins and delete white space
        /// </summary>
        /// <param name="body"></param>
        /// <returns></returns>
        public static string GetCoins(string body)
        {
            var htmlDoc = new HtmlDocument();

            htmlDoc.LoadHtml(body);

            var node = htmlDoc.DocumentNode.SelectSingleNode("//*[@id=\"page-content-wrapper\"]/div[1]/div[2]/div[1]/p/span");

            return(StringTreatement.DeleteWhiteSpace(node.InnerText));
        }