Exemplo n.º 1
0
        public void ScrapeAllProductsTest()
        {
            YcmcScraper scraper = new YcmcScraper();

            scraper.ScrapeAllProducts(out var lst, ScrappingLevel.PrimaryFields, CancellationToken.None);
            Helper.PrintFindItemsResults(lst);
        }
Exemplo n.º 2
0
        public void FindItemsTest()
        {
            YcmcScraper        scraper  = new YcmcScraper();
            SearchSettingsBase settings = new SearchSettingsBase()
            {
                KeyWords = "jordan"
            };

            scraper.FindItems(out var lst, settings, CancellationToken.None);
        }
Exemplo n.º 3
0
        public void GetProductDetailsTest()
        {
            YcmcScraper scraper    = new YcmcScraper();
            Product     curProduct = new Product(scraper,
                                                 "Whatever",
                                                 "https://www.ycmc.com/new-arrivals/adibreak-romper.html",
                                                 1,
                                                 "whatever",
                                                 "whatever",
                                                 "USD");

            ProductDetails details = scraper.GetProductDetails(curProduct.Url, CancellationToken.None);

            foreach (var sz in details.SizesList)
            {
                Debug.WriteLine(sz);
            }
        }