.net 8.0 中的 Angular 网站的网络爬行

问题描述 投票:0回答:0

我想抓取角度网站 - https://v16.angular.io/docs我已经为此编写了代码

 var playwright = await Playwright.CreateAsync();
 var browser = await playwright.Chromium.LaunchAsync(new BrowserTypeLaunchOptions { Headless = true });
 var page = await browser.NewPageAsync();
 await page.GotoAsync("https://v16.angular.io/docs");

 // Wait for the page to load fully
 await page.WaitForSelectorAsync("body");

 var content = await page.ContentAsync();
 Console.WriteLine(content);

 await browser.CloseAsync();

但它抛出错误“可执行文件不存在于 C:\Users\Vinit\AppData\Local\ms-playwigh

.net angular web-crawler
© www.soinside.com 2019 - 2024. All rights reserved.