Пример #1
0
 public IActionResult RunJobs()
 {
     douban.Run();
     pinpai.Run();
     ccbHouse.Run();
     mogu.Run();
     return(View());
 }
Пример #2
0
        public IActionResult Index(string source)
        {
            try
            {
                LogHelper.RunActionTaskNotThrowEx(() =>
                {
                    switch (source)
                    {
                    case "baixing":
                        baixing.Run();
                        break;

                    case "douban":
                        douban.Run();
                        break;

                    case "zuber":
                        zuber.Run();
                        break;

                    case "huzhuzufang":
                        people.Run();
                        break;

                    case "ccbhouse":
                        ccbHouse.Run();
                        break;

                    case "mogu":
                        mogu.Run();
                        break;

                    case "hkspacious":
                        hkSpacious.Run();
                        break;

                    case "pinpaigongyu":
                        pinpai.Run();
                        break;

                    case "beike":
                        beike.Run();
                        break;

                    case "chengdufgj":
                        chengdu.Run();
                        break;
                    }
                }, source);

                return(Json(new { success = true }));
            }
            catch (Exception ex)
            {
                return(Json(new { success = true, error = ex.ToString() }));
            }
        }
Пример #3
0
 public IActionResult RunJobs()
 {
     DoubanHouseCrawler.Run();
     PinPaiGongYuHouseCrawler.Run();
     PeopleRentingCrawler.Run();
     CCBHouesCrawler.Run();
     ZuberHouseCrawler.Run();
     MoGuHouseCrawler.Run();
     return(View());
 }