Esempio n. 1
0
        public void ScrapeAllProductsTest()
        {
            NighshopScraper scraper = new NighshopScraper();

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

            scraper.FindItems(out var lst, settings, CancellationToken.None);
        }
Esempio n. 3
0
        public void GetProductDetailsTest()
        {
            NighshopScraper scraper    = new NighshopScraper();
            Product         curProduct = new Product(scraper,
                                                     "Nike Air Jordan Wmns 1 Retro",
                                                     "https://www.nighshop.com/adidas-by-raf-simons-replicant-ozweego-belgium-schwarz-rot-gelb-f34234",
                                                     1,
                                                     "whatever",
                                                     "whatever",
                                                     "EUR");

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

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