public UniverseScraper()
        {
            for (int i = 0; i < numberOfItems; i++)
            {
                XPathParameters param = new XPathParameters
                {
                    XPathNameParameter         = "/html/body/div[7]/div[4]/div/div/div[2]/div[9]/div[" + (1 + i) + "]/div[1]/div[2]/div[1]/a",
                    XPathPriceParameter        = "/html/body/div[7]/div[4]/div/div/div[2]/div[9]/div[" + (1 + i) + "]/div[2]/div[1]/div[2]",
                    XPathAvailabilityParameter = "/html/body/div[7]/div[4]/div/div/div[2]/div[9]/div[" + (1 + i) + "]/div[2]/div[1]/div[5]"
                };
                this.xPathParams.Add(param);
            }

            this.sourceURL = "https://www.computeruniverse.net";
        }
Beispiel #2
0
        public GamersScraper()
        {
            for (int i = 0; i < numberOfItems; i++)
            {
                XPathParameters param = new XPathParameters
                {
                    XPathNameParameter  = "//*[@id='main']/ul/li [" + (1 + i) + "]/div/div/div[1]/a[2]/h2",
                    XPathPriceParameter = "//*[@id='main']/ul/li[" + (1 + i) + "]/div/div/div[3]/div[1]/span/span/span"
                };

                this.xPathParams.Add(param);
            }

            this.sourceURL = "https://gamerslounge.mt/";
        }
Beispiel #3
0
        public KlikkScraper()
        {
            for (int i = 0; i < numberOfItems; i++)
            {
                XPathParameters param = new XPathParameters
                {
                    XPathNameParameter         = "/html/body/div[2]/div/main/section/div/div/div[2]/div/product-grid/div/div[" + (3 + i) + "]/div/div/a/div[2]/p",
                    XPathPriceParameter        = "/html/body/div[2]/div/main/section/div/div/div[2]/div/product-grid/div/div[" + (3 + i) + "]/div/div/div[2]/div[1]",
                    XPathAvailabilityParameter = "//*[@id='content']/div/div/div[2]/div/product-grid/div/div[" + (3 + i) + "]/div/div/div[4]/span[2]"
                };
                this.xPathParams.Add(param);
            }

            this.sourceURL = "https://www.klikk.com.mt/";
        }
Beispiel #4
0
        public AmazonScraper()
        {
            XPathParameters param = new XPathParameters();

            param.XPathNameParameter         = "/html/body/div[1]/div[1]/div[1]/div[2]/div/span[4]/div[1]/div[9]/div/span/div/div/div[2]/div[2]/div/div[1]/div/div/div[1]/h2/a/span"; ///html/body/div[1]/div[1]/div[1]/div[2]/div/span[4]/div[2]/div[9]/div/span/div/div/div[2]/div[2]/div/div[1]/div/div/div[1]/h2/a/span
            param.XPathPriceParameter        = "/html/body/div[1]/div[1]/div[1]/div[2]/div/span[4]/div[1]/div[9]/div/span/div/div/div[2]/div[2]/div/div[2]/div[1]/div/div/div";       // 3 spans -- symbol, full, cents
            param.XPathAvailabilityParameter = "/html/body/div[1]/div[1]/div[1]/div[2]/div/span[4]/div[1]/div[9]/div/span/div/div/div[2]/div[2]/div/div[2]/div[1]/div/div[2]/div/span";
            this.xPathParams.Add(param);

            param = new XPathParameters();
            param.XPathNameParameter         = "/html/body/div[1]/div[1]/div[1]/div[2]/div/span[4]/div[1]/div[10]/div/span/div/div/div[2]/div[2]/div/div[1]/div/div/div[1]/h2/a/span";
            param.XPathPriceParameter        = "/html/body/div[1]/div[1]/div[1]/div[2]/div/span[4]/div[1]/div[10]/div/span/div/div/div[2]/div[2]/div/div[2]/div[1]/div/div[1]/div/div/a/span"; // sometimes no info -- try statement?
            param.XPathAvailabilityParameter = "/html/body/div[1]/div[1]/div[1]/div[2]/div/span[4]/div[1]/div[10]/div/span/div/div/div[2]/div[2]/div/div[2]/div[1]/div/div[2]/div/span";       // same as ^
            this.xPathParams.Add(param);
        }
        public SimarkScraper()
        {
            for (int i = 0; i < numberOfItems; i++)
            {
                XPathParameters param = new XPathParameters
                {
                    XPathNameParameter         = "//*[@id='ctl00_MainContent_ProductsListView_DataGrid']/tbody/tr[" + (2 + i) + "]/td[2]/a",
                    XPathPriceParameter        = "//*[@id='ctl00_MainContent_ProductsListView_DataGrid']/tbody/tr[" + (2 + i) + "]/td[3]/span[1]",
                    XPathAvailabilityParameter = "//*[@id='ctl00_MainContent_ProductsListView_DataGrid']/tbody/tr[" + (2 + i) + "]/td[4]/span[2]"
                };
                this.xPathParams.Add(param);
            }

            this.sourceURL = "https://www.simarksupplies.com/";
        }
        public OverclockersScraper()
        {
            for (int i = 0; i < numberOfItems; i++)
            {
                XPathParameters param = new XPathParameters
                {
                    XPathNameParameter         = "/html/body/div[4]/div/div/div/div/div[3]/div[5]/div[1]/div [" + (1 + i) + "]/div/a[2]/span[2]",
                    XPathPriceParameter        = "/html/body/div[4]/div/div/div/div/div[3]/div[5]/div[1]/div[" + (1 + i) + "]/div/p",
                    XPathAvailabilityParameter = "/html/body/div[4]/div/div/div/div/div[3]/div[5]/div[1]/div[" + (1 + i) + "]/div/span/p"
                };

                this.xPathParams.Add(param);
            }

            this.sourceURL = "https://www.overclockers.co.uk/";
        }
Beispiel #7
0
        public ScanScraper()
        {
            for (int i = 0; i < numberOfItems; i++)
            {
                XPathParameters param = new XPathParameters
                {
                    XPathNameParameter         = "/html/body/div[1]/main/div[3]/div[1]/div[4]/div[2]/ol/li[" + (1 + i) + "]/ div/div[2]/strong/a",
                    XPathPriceParameter        = "/html/body/div[1]/main/div[3]/div[1]/div[4]/div[2]/ol/li[" + (1 + i) + "]/div/div[2]/div[2]",
                    XPathAvailabilityParameter = "/html/body/div[1]/main/div[3]/div[1]/div[4]/div[2]/ol/li[" + (1 + i) + "]/div/div[2]/div[3]/div/div[1]"
                };

                this.xPathParams.Add(param);
            }

            this.sourceURL = "https://www.scanmalta.com/";
        }
Beispiel #8
0
        public UltraScraper()
        {
            for (int i = 0; i < numberOfItems; i++)
            {
                XPathParameters param = new XPathParameters
                {
                    XPathNameParameter         = "/html/body/section[5]/div/div/div/div[2]/div[2]/div[" + (1 + i) + "]/div[2]/div[1]/a",
                    XPathPriceParameter        = "/html/body/section[5]/div/div/div/div[2]/div[2]/div[" + (1 + i) + "]/div[2]/div[2]",
                    XPathAvailabilityParameter = "/html/body/section[5]/div/div/div/div[2]/div[2]/div[" + (1 + i) + "]/div[2]/div[3]"
                };

                this.xPathParams.Add(param);
            }

            this.sourceURL = "https://ultramalta.com/";
        }
        public RedditScraper()
        {
            for (int i = 0; i < numberOfItems; i++)
            {
                XPathParameters param = new XPathParameters
                {
                    XPathNameParameter = "/html/body/div[1]/div/div/div/div[2]/div/div/div/div[2]/div[3]/div[1]/div[3]/div[" + (1 + i) + "]/div/div/div[2]/div/div[2]/div[1]/div[2]/a/div/h3",
                    XPathExternalUrl   = "/html/body/div[1]/div/div/div/div[2]/div/div/div/div[2]/div[3]/div[1]/div[3]/div[" + (1 + i) + "]/div/div/div[2]/div/div[2]/div[1]/a"
                };


                this.xPathParams.Add(param);
            }

            this.sourceURL = "https://www.reddit.com/r/buildapcsales/";
        }