public void ScrapeAllProductsTest() { EndclothingScraper scraper = new EndclothingScraper(); scraper.ScrapeAllProducts(out var lst, ScrappingLevel.PrimaryFields, CancellationToken.None); Helper.PrintFindItemsResults(lst); }
public void FindItemsTest() { EndclothingScraper scraper = new EndclothingScraper(); SearchSettingsBase settings = new SearchSettingsBase() { KeyWords = "jordan" }; scraper.FindItems(out var lst, settings, CancellationToken.None); Helpers.Helper.PrintFindItemsResults(lst); }
public void GetProductDetailsTest() { EndclothingScraper scraper = new EndclothingScraper(); Product curProduct = new Product(scraper, "Whatever", "https://www.endclothing.com/us/air-jordan-12-retro-gg-510815-100.html", 1, "whatever", "whatever", "EUR"); ProductDetails details = scraper.GetProductDetails(curProduct.Url, CancellationToken.None); foreach (var sz in details.SizesList) { Console.WriteLine(sz); } }