コード例 #1
0
        public void GetNewArrivalsPage()
        {
            KithScrapper scraper = new KithScrapper();

            scraper.ScrapeAllProducts(out var lst, ScrappingLevel.PrimaryFields, CancellationToken.None);
            Helper.PrintFindItemsResults(lst);
        }
コード例 #2
0
        public void GetProductDetailsTest()
        {
            KithScrapper scraper = new KithScrapper();

            ProductDetails details = scraper.GetProductDetails("https://kith.com/collections/latest/products/nike-air-jordan-10-retro-racer-blue-team-orange-black", CancellationToken.None);

            Helper.PrintGetDetailsResult(details.SizesList);
            Debug.WriteLine(details.Name);
        }
コード例 #3
0
        public void FindItemsTest()
        {
            KithScrapper       scraper  = new KithScrapper();
            SearchSettingsBase settings = new SearchSettingsBase()
            {
                KeyWords = "Boots"
            };

            scraper.FindItems(out var lst, settings, CancellationToken.None);
            foreach (var item in lst)
            {
                Debug.WriteLine(item.Id);
            }
        }