I want to receive a rendered HTML. At the moment I am using the namespace "EO.WebBrowser" and it works for this purpose. But I always get a reminder to use a license (The license is only for commercial purposes)
So my question is: "Is there a better way without using forms?"
Reference to the same question by using forms
My current code:
internal static string GetHtml(string url)
{
ThreadRunner runner = new ThreadRunner();
WebView view = runner.CreateWebView();
runner.Send(() =>
{
view.LoadUrlAndWait(url);
});
return view.GetHtml();
}
It will be a linux service for my raspberry pi (Rasbian OS).