예제 #1
0
        public void ScrapeAllProductsTest()
        {
            SoleboxScraper scraper = new SoleboxScraper();

            scraper.ScrapeAllProducts(out var lst, ScrappingLevel.PrimaryFields, CancellationToken.None);
            Helper.PrintFindItemsResults(lst);
        }
예제 #2
0
        public void GetProductDetailsTest()
        {
            SoleboxScraper scraper = new SoleboxScraper();
            ProductDetails details = scraper.GetProductDetails("https://www.solebox.com/en/Footwear/Basketball/Air-Jordan-1-Retro-High-OG-variant-14.html", CancellationToken.None);

            foreach (var sz in details.SizesList)
            {
                Debug.WriteLine(sz);
            }
        }
예제 #3
0
        public void FindItemsTest()
        {
            SoleboxScraper     scraper  = new SoleboxScraper();
            SearchSettingsBase settings = new SearchSettingsBase()
            {
                KeyWords = "Air+Presto"
            };

            scraper.FindItems(out var lst, settings, CancellationToken.None);
        }