Skip to content

Instantly share code, notes, and snippets.

View fjeldstad's full-sized avatar
🦄

Anders Fjeldstad fjeldstad

🦄
View GitHub Profile
private static HtmlDocument GetHtmlDocument(string url)
{
var page = new HtmlDocument
{
OptionOutputAsXml = true
};
HtmlNode.ElementsFlags.Remove("option");
// Fetch and load HTML document (default gym selected)
var request = (HttpWebRequest)HttpWebRequest.Create(url);