I have that, hopefully, a simple task, but in order to solve this problem, someone who understands CefSharp will be required.
I have a URL from which I want to extract HTML code. The problem is that this URL does not actually propagate the page to GET. Instead, it pops a piece of Javascript into the browser, which then executes and creates the actual page displayed. This means that conventional approaches, including HttpWebRequestand HttpWebResponse, will not work.
I looked at several different “headless” options, and the one that seems to best fit my needs for a number of reasons is CefSharp.Offscreen. But I don’t understand how it works. I see that there are several events that you can subscribe to, and some configuration options, but I do not need anything like a built-in browser.
All I really need is a way to do something like this (pseudocode):
string html = CefSharp.Get(url);
I have no problem subscribing to events, if necessary, in order to wait for Javascript to execute and create the displayed page.
source
share