Exemple #1
0
        static void Main(string[] args)
        {
            Console.WriteLine("Scraping media from NOW TV...");

            var webDriver                = new ChromeDriver();
            var nowTvSettings            = new NowTvScraperSettings();
            var nowTvScraper             = new NowTvScraper(webDriver, nowTvSettings);
            var nowTvStreamingRepository = new StreamingProviderFileRepository();
            var nowTvService             = new StreamingProviderService(nowTvScraper, nowTvStreamingRepository);

            nowTvService.ScrapeAndSave();

            webDriver.Dispose();
            webDriver.Quit();

            Console.WriteLine("Scraping complete, press any key to exit...");
            Console.ReadLine();
        }
Exemple #2
0
 public NowTvScraper(IWebDriver webDriver, NowTvScraperSettings settings)
 {
     _webDriver = webDriver;
     _settings  = settings;
 }