public App(string baseUrl) { var scrapeAgent = new ScrapeAgent(baseUrl); _calendarFetcher = new CalendarFetcher(scrapeAgent); _movieFetcher = new MovieFetcher(scrapeAgent); _resturangFetcher = new ResturangFetcher(scrapeAgent); }
public MovieFetcher(ScrapeAgent scrape) { _scrapeAgent = scrape; //Get the link to /cinema var links = GetListOfLinks(); foreach (var link in links) { if (link.Contains("cinema")) { _urlToMovie = link; } } }
//Get the link to resturang == _baseurl + /dinner public ResturangFetcher(ScrapeAgent scrape) { _scrapeAgent = scrape; //Get the link to /cinema var links = GetListOfLinks(); foreach (var link in links) { if (link.Contains("dinner")) { _urlToResturang = link; } } }
protected Fetcher(ScrapeAgent scrape) { _scrapeAgent = scrape; }
public CalendarFetcher(ScrapeAgent scrape) { _scrapeAgent = scrape; }