public void ScrapeAllProductsTest() { ShoezgalleryScraper scraper = new ShoezgalleryScraper(); scraper.ScrapeAllProducts(out var lst, ScrappingLevel.PrimaryFields, CancellationToken.None); Helper.PrintFindItemsResults(lst); }
public void FindItemsTest() { ShoezgalleryScraper scraper = new ShoezgalleryScraper(); SearchSettingsBase settings = new SearchSettingsBase() { KeyWords = "jordan" }; scraper.FindItems(out var lst, settings, CancellationToken.None); }
public void GetProductDetailsTest() { ShoezgalleryScraper scraper = new ShoezgalleryScraper(); Product curProduct = new Product(scraper, "Nike Air Jordan Wmns 1 Retro", "https://www.shoezgallery.com/en/p9727-plato-sneaker-satellite-no-name-plato-sneaker-bandana-black?search_query=sneaker&results=13", 1, "whatever", "whatever", "EUR"); ProductDetails details = scraper.GetProductDetails(curProduct.Url, CancellationToken.None); foreach (var sz in details.SizesList) { Debug.WriteLine(sz); } }