AngleSharp / AngleSharp.Js

:angel: Extends AngleSharp with a .NET-based JavaScript engine.
https://anglesharp.github.io
MIT License
105 stars 23 forks source link

Javascript not evaluate #73

Closed pengweiqhca closed 3 years ago

pengweiqhca commented 3 years ago
using var client = new HttpClient();
var body =await client.GetStringAsync("https://best-proxy.com/english/index.php?p=1");
using var context = BrowsingContext.New(Configuration.Default.WithJs());
using var doc = await context.OpenAsync(req => req.Content(body));

Console.WriteLine(doc.QuerySelectorAll(".table>ul")[0].Children[0].TextContent);