コード例 #1
0
        public override void Parse(Response response)
        {
            foreach (var Divs in response.Css(".has-ingrid.grid__item.js-default-ajax-scroll-target"))
            {
                var items = Divs.Css(".default--1-3.lap-wide--1-2.lap--1-2.palm-wide--1-1.palm--1-1.grid__item");
                foreach (var item in items)
                { // za svaki property
                    var propertyContainer = item.Css(".listing-item__image.listing-item__tabs-container.js-c-thumbnail-carousel");
                    if (propertyContainer.Length > 0)
                    {
                        var attributeLink = string.Empty;
                        var goToLink      = propertyContainer[0].Css("a")[0].Attributes.TryGetValue("href", out attributeLink);

                        var uri = new Uri(attributeLink);

                        resultItems.Add(uri.AbsolutePath.ToString(), attributeLink);
                    }
                }
            }

            //      Scrape(new ScrapedData() { { "Res", resultItems } } );
        }