Exemplo n.º 1
0
        static void Main(string[] args)
        {
            args = new[] { "wmt" };             // FOR DEBUGGING
            ConfigureLogger();

            Log.Debug("Arguments passed in: {args}", args);
            var target     = new YahooFinanceTarget(InitSeleniumWebPageRenderer(), args[0]);
            var finScraper = new FinancialScraper(target);

            finScraper.ScrapeTickers(args);

            Log.Debug("Program has exited");
        }
Exemplo n.º 2
0
        public void TestSetup()
        {
            var options = new ChromeOptions();

            options.AddArgument("headless");
            options.AddArgument("--log-level=3");
            options.AddArgument("--silent");

            driver  = new ChromeDriver(options);
            wait    = new WebDriverWait(driver, TimeSpan.FromSeconds(10));
            actions = new Actions(driver);

            var webPageRenderer = new SeleniumWebPageRenderer(driver, wait, actions);

            yahooFinanceTarget = new YahooFinanceTarget(webPageRenderer, "wmt");
        }