示例#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(); });
        }
示例#2
0
        // GET: MovieCrawler
        public ContentResult Index()
        {
            var crawlingService = new CrawlingService(_actorService, _movieService, _categoryService);

            crawlingService.StoreAllMovieInGenres();

            //index++;
            //}

            return(Content("asd"));
        }
示例#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"));
        }