Ejemplo n.º 1
0
        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(); });
        }
Ejemplo n.º 2
0
        // GET: MovieCrawler
        public ContentResult Index()
        {
            var crawlingService = new CrawlingService(_actorService, _movieService, _categoryService);

            crawlingService.StoreAllMovieInGenres();

            //index++;
            //}

            return(Content("asd"));
        }
Ejemplo n.º 3
0
        // 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"));
        }