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

            scraper.ScrapeAllProducts(out var lst, ScrappingLevel.PrimaryFields, CancellationToken.None);
            Helper.PrintFindItemsResults(lst);
        }
コード例 #2
0
        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);
        }
コード例 #3
0
        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);
            }
        }