예제 #1
0
        public override HtmlNodeCollection getItemsInPage(int pageIndex)
        {
            currentDestToGetUrl = currentDestToGetUrl.Substring(0, currentDestToGetUrl.LastIndexOf("/") + 1) + pageIndex;
            var ul = WebParserUtil.selectNodes(currentDestToGetUrl, "//div[@class='left-content'] //ul");

            return(ul[0].SelectNodes(".//a"));
        }
예제 #2
0
        public override HtmlNodeCollection getItemsInPage(int pageIndex)
        {
            string[] currentDestToGetUrlInfo = currentDestToGetUrl.Split('?');
            string   urlParams = (currentDestToGetUrlInfo.Length > 1) ? "&" + currentDestToGetUrlInfo[1] : "";
            string   pageUrl   = currentDestToGetUrlInfo[0] + pageIndexParam + pageIndex + urlParams;
            var      ul        = WebParserUtil.selectNodes(pageUrl, "//div[@class='left-content'] //ul");

            return(ul[0].SelectNodes(".//a"));
        }
예제 #3
0
        public override HtmlNodeCollection getItemsInPage(int pageIndex)
        {
            string pageUrl = currentDestToGetUrl + pageIndexParam + (++pageIndex) + ".html";

            return(WebParserUtil.selectNodes(pageUrl, "//ul[@class='list-movie'] //a"));
        }