static void Main(string[] args) { //todo:Create an app config file,put in category url //todo:Do validations var crawlingUtil = new CrawlingUtil(); var productRepository = new ProductRepository(); var service = new CrawlingService(crawlingUtil, productRepository); //var request = new CrawlingRequest(categoryUrl); service.Crawl("https://www.hepsiburada.com/oyuncu-laptoplari-c-95583").GetAwaiter().OnCompleted(() => { Console.WriteLine("Completed"); Console.Read(); }); }
// GET: MovieCrawler public ContentResult Index() { var crawlingService = new CrawlingService(_actorService, _movieService, _categoryService); crawlingService.StoreAllMovieInGenres(); //index++; //} return(Content("asd")); }
// GET: MovieCrawler public ContentResult Index() { var crawlingService = new CrawlingService(_actorService, _movieService, _genreService); crawlingService.StoreAllMovieInGenres(19, "http://www.imdb.com/title/tt1242441/?ref_=adv_li_tt"); //index++; //} return(Content("asd")); }