Пример #1
0
        public void GetProductDetailsTest3()
        {
            var scraper = new SneakerStudioScraper();

            var testUrl = "https://sneakerstudio.com/product-eng-15474-Womens-shoes-sneakers-New-Balance-WL574ESS.html";

            var details = scraper.GetProductDetails(testUrl, CancellationToken.None);

            Helper.PrintGetDetailsResult(details.SizesList);
        }
Пример #2
0
        public void GetProductDetailsTest2()
        {
            var scraper = new SneakerStudioScraper();

            var testUrl = "https://sneakerstudio.com/product-eng-14715-Mens-shoes-sneakers-adidas-Originals-Padiham-SPZL-Spezial-Night-Navy-AC7747.html";

            var details = scraper.GetProductDetails(testUrl, CancellationToken.None);

            Helper.PrintGetDetailsResult(details.SizesList);
        }
Пример #3
0
        public void GetProductDetailsTest1()
        {
            var scraper = new SneakerStudioScraper();

            var testUrl = "https://sneakerstudio.com/product-eng-16693-Scarf-Fila-686015-006.html";

            var details = scraper.GetProductDetails(testUrl, CancellationToken.None);

            Helper.PrintGetDetailsResult(details.SizesList);
        }
Пример #4
0
        public void NewArrivalsTest()
        {
            var scraper = new SneakerStudioScraper();

            scraper.Active = true;
            var stopwatch = Stopwatch.StartNew();

            scraper.ScrapeAllProducts(out var list, ScrappingLevel.PrimaryFields, CancellationToken.None);
            Helper.PrintFindItemsResults(list);
            Console.WriteLine(stopwatch.Elapsed.ToString("g"));
        }
Пример #5
0
        public void FindItemsTest()
        {
            var scraper  = new SneakerStudioScraper();
            var settings = new SearchSettingsBase()
            {
                KeyWords = "adidas"
            };

            scraper.FindItems(out var list, settings, CancellationToken.None);
            Helper.PrintFindItemsResults(list);
        }