public async Task <string> Get(CrawlWiproFormModel model) { var crawler = new Crawler(model.url, model.depth); var result = await crawler.GetAllPageLinksAsync(model.url, true); var json = JsonConvert.SerializeObject(result); return(json); }
public async Task <ActionResult> CrawlWiproAsync(CrawlWiproFormModel model) { //default to wiprodigital.com if (string.IsNullOrEmpty(model.url)) { model.url = "https://wiprodigital.com"; } //start crawler var crawler = new Crawler(model.url, model.depth); var result = await crawler.GetAllPageLinksAsync(model.url, true); return(View(result.ToList())); }
public IActionResult CrawlWipro(CrawlWiproFormModel model) { //default to wiprodigital.com if (string.IsNullOrEmpty(model.url)) { model.url = "https://wiprodigital.com"; } //start crawler var crawler = new Crawler(model.url, model.depth); var result = crawler.ExtractAll(model.url, true).ToList(); return(View(result)); }