Questions tagged [anglesharp]

Use this tag for questions related to the AngleSharp .NET library for HTML/SVG/MathML parsing.

AngleSharp is a .NET library that gives you the ability to parse angle bracket based hyper-texts like HTML, SVG, and MathML. XML without validation is also supported by the library. An important aspect of AngleSharp is that CSS can also be parsed. The parser is built upon the official W3C specification. This produces a perfectly portable HTML5 DOM representation of the given source code. Also current features such as querySelector or querySelectorAll work for tree traversal.

155 questions
9
votes
2 answers

Can I prevent AngleSharp from extrapolating a full HTML document when parsing a fragment?

Is there anyway to get AngleSharp to not create a full HTML document when parsed a fragment. For example, if I parse: The Title I get a full HTML document in DocumentElement.OuterHtml: The…</div> <div class="grid ai-start jc-space-between fw-wrap"> <div class="grid gs4 fw-wrap tags "> <a href="../../questions/tagged/anglesharp" class="post-tag grid--cell" title="show questions tagged 'anglesharp'" rel="tag">anglesharp</a> </div> <div class="started mt0"> <div class="s-user-card s-user-card"> <time class="s-user-card--time" datetime="asked Aug 19 '16 at 16:38">asked Aug 19 '16 at 16:38</time> <a href="../../users/60733/deane" class="s-avatar s-avatar__32 s-user-card--avatar"> <img class="s-avatar--image" src="../../users/profiles/60733.webp" data-jdenticon-width="32" data-jdenticon-height="32" data-jdenticon-value="Deane" /> </a> <div class="s-user-card--info"> <a href="../../users/60733/deane" class="s-user-card--link">Deane</a> <ul class="s-user-card--awards"> <li class="s-user-card--rep" title="reputation score">8,269</li> <li class="s-award-bling s-award-bling__gold" title="12 gold badges">12</li> <li class="s-award-bling s-award-bling__silver" title="58 silver badges">58</li> <li class="s-award-bling s-award-bling__bronze" title="108 bronze badges">108</li> </ul> </div> </div> </div> </div> </div> </div> </div> <div class="mln24"> <div class="question-summary" id="question-summary-39707735"> <div class="statscontainer"> <div class="stats"> <div class="vote"> <div class="votes"> <span class="vote-count-post"><strong>7</strong></span> <div class="viewcount">votes</div> </div> </div> <div class="status "> <strong>1</strong> answer </div> </div> </div> <div class="summary"> <h3><a href="../../questions/39707735/anglesharp-how-to-get-ratings-reviews-from-a-yelp-site" class="question-hyperlink">Anglesharp - How to get ratings & reviews from a Yelp site?</a></h3> <div class="excerpt">I want to try my hand and webscraping. I've noticed that Anglesharp is pretty good for the .Net environment. I'm trying to get a list of all the descriptions and ratings from a yelp site and I don't get any errors or any results. Here's a subset…</div> <div class="grid ai-start jc-space-between fw-wrap"> <div class="grid gs4 fw-wrap tags "> <a href="../../questions/tagged/linq" class="post-tag grid--cell" title="show questions tagged 'linq'" rel="tag">linq</a> <a href="../../questions/tagged/c#-4.0" class="post-tag grid--cell" title="show questions tagged 'c#-4.0'" rel="tag">c#-4.0</a> <a href="../../questions/tagged/web-scraping" class="post-tag grid--cell" title="show questions tagged 'web-scraping'" rel="tag">web-scraping</a> <a href="../../questions/tagged/anglesharp" class="post-tag grid--cell" title="show questions tagged 'anglesharp'" rel="tag">anglesharp</a> </div> <div class="started mt0"> <div class="s-user-card s-user-card"> <time class="s-user-card--time" datetime="asked Sep 26 '16 at 16:20">asked Sep 26 '16 at 16:20</time> <a href="../../users/979127/inquisitive-one" class="s-avatar s-avatar__32 s-user-card--avatar"> <img class="s-avatar--image" src="../../users/profiles/979127.webp" data-jdenticon-width="32" data-jdenticon-height="32" data-jdenticon-value="inquisitive_one" /> </a> <div class="s-user-card--info"> <a href="../../users/979127/inquisitive-one" class="s-user-card--link">inquisitive_one</a> <ul class="s-user-card--awards"> <li class="s-user-card--rep" title="reputation score">1,465</li> <li class="s-award-bling s-award-bling__gold" title="7 gold badges">7</li> <li class="s-award-bling s-award-bling__silver" title="32 silver badges">32</li> <li class="s-award-bling s-award-bling__bronze" title="56 bronze badges">56</li> </ul> </div> </div> </div> </div> </div> </div> </div> <div class="mln24"> <div class="question-summary" id="question-summary-36097193"> <div class="statscontainer"> <div class="stats"> <div class="vote"> <div class="votes"> <span class="vote-count-post"><strong>7</strong></span> <div class="viewcount">votes</div> </div> </div> <div class="status answered-accepted"> <strong>1</strong> answer </div> </div> </div> <div class="summary"> <h3><a href="../../questions/36097193/anglesharp-parsing" class="question-hyperlink">AngleSharp Parsing</a></h3> <div class="excerpt">Can't find many examples of using AngleSharp for parsing when you don't have a class name or id to use. HTML <span><a href="google.com" title="Google"><span class="icon icon_none"></span></a></span> <span><a href="bing.com" title="Bing"><span…</div> <div class="grid ai-start jc-space-between fw-wrap"> <div class="grid gs4 fw-wrap tags "> <a href="../../questions/tagged/c#" class="post-tag grid--cell" title="show questions tagged 'c#'" rel="tag">c#</a> <a href="../../questions/tagged/html-parsing" class="post-tag grid--cell" title="show questions tagged 'html-parsing'" rel="tag">html-parsing</a> <a href="../../questions/tagged/anglesharp" class="post-tag grid--cell" title="show questions tagged 'anglesharp'" rel="tag">anglesharp</a> </div> <div class="started mt0"> <div class="s-user-card s-user-card"> <time class="s-user-card--time" datetime="asked Mar 19 '16 at 02:37">asked Mar 19 '16 at 02:37</time> <a href="../../users/1016070/speedbird527" class="s-avatar s-avatar__32 s-user-card--avatar"> <img class="s-avatar--image" src="../../users/profiles/1016070.webp" data-jdenticon-width="32" data-jdenticon-height="32" data-jdenticon-value="SpeedBird527" /> </a> <div class="s-user-card--info"> <a href="../../users/1016070/speedbird527" class="s-user-card--link">SpeedBird527</a> <ul class="s-user-card--awards"> <li class="s-user-card--rep" title="reputation score">149</li> <li class="s-award-bling s-award-bling__gold" title="2 gold badges">2</li> <li class="s-award-bling s-award-bling__silver" title="4 silver badges">4</li> <li class="s-award-bling s-award-bling__bronze" title="18 bronze badges">18</li> </ul> </div> </div> </div> </div> </div> </div> </div> <div class="mln24"> <div class="question-summary" id="question-summary-56102231"> <div class="statscontainer"> <div class="stats"> <div class="vote"> <div class="votes"> <span class="vote-count-post"><strong>6</strong></span> <div class="viewcount">votes</div> </div> </div> <div class="status answered-accepted"> <strong>2</strong> answers </div> </div> </div> <div class="summary"> <h3><a href="../../questions/56102231/binding-redirect-when-importing-anglesharp-in-net-4-7-2-somehow-tries-to-pull-" class="question-hyperlink">Binding redirect when importing AngleSharp in .Net 4.7.2 somehow tries to pull in NetStandard 2 as a dll</a></h3> <div class="excerpt">I have a legacy app running on an old Windows 2008 R2 server. The app has gone through many .Net versions, and is currently on 4.7.2. It has been stable as a rock for years, and while there are migration plans to move away from the old physical…</div> <div class="grid ai-start jc-space-between fw-wrap"> <div class="grid gs4 fw-wrap tags "> <a href="../../questions/tagged/c#" class="post-tag grid--cell" title="show questions tagged 'c#'" rel="tag">c#</a> <a href="../../questions/tagged/assembly-binding-redirect" class="post-tag grid--cell" title="show questions tagged 'assembly-binding-redirect'" rel="tag">assembly-binding-redirect</a> <a href="../../questions/tagged/anglesharp" class="post-tag grid--cell" title="show questions tagged 'anglesharp'" rel="tag">anglesharp</a> <a href="../../questions/tagged/.net-4.7.2" class="post-tag grid--cell" title="show questions tagged '.net-4.7.2'" rel="tag">.net-4.7.2</a> </div> <div class="started mt0"> <div class="s-user-card s-user-card"> <time class="s-user-card--time" datetime="asked May 12 '19 at 18:29">asked May 12 '19 at 18:29</time> <a href="../../users/2122/rune-jacobsen" class="s-avatar s-avatar__32 s-user-card--avatar"> <img class="s-avatar--image" src="../../users/profiles/2122.webp" data-jdenticon-width="32" data-jdenticon-height="32" data-jdenticon-value="Rune Jacobsen" /> </a> <div class="s-user-card--info"> <a href="../../users/2122/rune-jacobsen" class="s-user-card--link">Rune Jacobsen</a> <ul class="s-user-card--awards"> <li class="s-user-card--rep" title="reputation score">9,907</li> <li class="s-award-bling s-award-bling__gold" title="11 gold badges">11</li> <li class="s-award-bling s-award-bling__silver" title="58 silver badges">58</li> <li class="s-award-bling s-award-bling__bronze" title="75 bronze badges">75</li> </ul> </div> </div> </div> </div> </div> </div> </div> <div class="mln24"> <div class="question-summary" id="question-summary-30696573"> <div class="statscontainer"> <div class="stats"> <div class="vote"> <div class="votes"> <span class="vote-count-post"><strong>6</strong></span> <div class="viewcount">votes</div> </div> </div> <div class="status "> <strong>2</strong> answers </div> </div> </div> <div class="summary"> <h3><a href="../../questions/30696573/parsing-javascript-web-page-in-c-with-anglesharp" class="question-hyperlink">Parsing JavaScript Web Page in C# with AngleSharp</a></h3> <div class="excerpt">The webpage use javascript to build its html so I need html parser with js support. I found anglesharp but I can't make it working. using AngleSharp; using System; using System.Collections.Generic; using System.Linq; using System.Net; using…</div> <div class="grid ai-start jc-space-between fw-wrap"> <div class="grid gs4 fw-wrap tags "> <a href="../../questions/tagged/javascript" class="post-tag grid--cell" title="show questions tagged 'javascript'" rel="tag">javascript</a> <a href="../../questions/tagged/c#" class="post-tag grid--cell" title="show questions tagged 'c#'" rel="tag">c#</a> <a href="../../questions/tagged/web-scraping" class="post-tag grid--cell" title="show questions tagged 'web-scraping'" rel="tag">web-scraping</a> <a href="../../questions/tagged/anglesharp" class="post-tag grid--cell" title="show questions tagged 'anglesharp'" rel="tag">anglesharp</a> </div> <div class="started mt0"> <div class="s-user-card s-user-card"> <time class="s-user-card--time" datetime="asked Jun 07 '15 at 17:43">asked Jun 07 '15 at 17:43</time> <a href="../../users/4763810/baltazer" class="s-avatar s-avatar__32 s-user-card--avatar"> <img class="s-avatar--image" src="../../users/profiles/4763810.webp" data-jdenticon-width="32" data-jdenticon-height="32" data-jdenticon-value="baltazer" /> </a> <div class="s-user-card--info"> <a href="../../users/4763810/baltazer" class="s-user-card--link">baltazer</a> <ul class="s-user-card--awards"> <li class="s-user-card--rep" title="reputation score">259</li> <li class="s-award-bling s-award-bling__gold" title="1 gold badge">1</li> <li class="s-award-bling s-award-bling__silver" title="5 silver badge">5</li> <li class="s-award-bling s-award-bling__bronze" title="12 bronze badge">12</li> </ul> </div> </div> </div> </div> </div> </div> </div> <div class="mln24"> <div class="question-summary" id="question-summary-49015061"> <div class="statscontainer"> <div class="stats"> <div class="vote"> <div class="votes"> <span class="vote-count-post"><strong>5</strong></span> <div class="viewcount">votes</div> </div> </div> <div class="status "> <strong>0</strong> answers </div> </div> </div> <div class="summary"> <h3><a href="../../questions/49015061/anglesharp-run-all-javascript-before-looking-for-element" class="question-hyperlink">AngleSharp: run all JavaScript before looking for element</a></h3> <div class="excerpt">I'm currently building an app for web automation using AngleSharp. I've managed to log in to a website, but can't find the element I'm looking for using context.Active.QuerySelectorAll. I understand that this is likely because some of the JavaScript…</div> <div class="grid ai-start jc-space-between fw-wrap"> <div class="grid gs4 fw-wrap tags "> <a href="../../questions/tagged/javascript" class="post-tag grid--cell" title="show questions tagged 'javascript'" rel="tag">javascript</a> <a href="../../questions/tagged/c#" class="post-tag grid--cell" title="show questions tagged 'c#'" rel="tag">c#</a> <a href="../../questions/tagged/anglesharp" class="post-tag grid--cell" title="show questions tagged 'anglesharp'" rel="tag">anglesharp</a> </div> <div class="started mt0"> <div class="s-user-card s-user-card"> <time class="s-user-card--time" datetime="asked Feb 27 '18 at 17:57">asked Feb 27 '18 at 17:57</time> <a href="../../users/4649525/user-fsharp1123" class="s-avatar s-avatar__32 s-user-card--avatar"> <img class="s-avatar--image" src="../../users/profiles/4649525.webp" data-jdenticon-width="32" data-jdenticon-height="32" data-jdenticon-value="User_FSharp1123" /> </a> <div class="s-user-card--info"> <a href="../../users/4649525/user-fsharp1123" class="s-user-card--link">User_FSharp1123</a> <ul class="s-user-card--awards"> <li class="s-user-card--rep" title="reputation score">1,061</li> <li class="s-award-bling s-award-bling__gold" title="1 gold badge">1</li> <li class="s-award-bling s-award-bling__silver" title="8 silver badge">8</li> <li class="s-award-bling s-award-bling__bronze" title="19 bronze badge">19</li> </ul> </div> </div> </div> </div> </div> </div> </div> <div class="mln24"> <div class="question-summary" id="question-summary-46331987"> <div class="statscontainer"> <div class="stats"> <div class="vote"> <div class="votes"> <span class="vote-count-post"><strong>5</strong></span> <div class="viewcount">votes</div> </div> </div> <div class="status answered-accepted"> <strong>2</strong> answers </div> </div> </div> <div class="summary"> <h3><a href="../../questions/46331987/anglesharp-openasync-returning-empty-body" class="question-hyperlink">AngleSharp OpenAsync returning empty body</a></h3> <div class="excerpt">Attempting to parse HTML using AngleSharp and running into issues with https://opensource.org/licenses/MS-PL The following code is returning '0' while running in Linqpad var url = @"https://opensource.org/licenses/MS-PL"; var doc = await…</div> <div class="grid ai-start jc-space-between fw-wrap"> <div class="grid gs4 fw-wrap tags "> <a href="../../questions/tagged/c#" class="post-tag grid--cell" title="show questions tagged 'c#'" rel="tag">c#</a> <a href="../../questions/tagged/html-parsing" class="post-tag grid--cell" title="show questions tagged 'html-parsing'" rel="tag">html-parsing</a> <a href="../../questions/tagged/anglesharp" class="post-tag grid--cell" title="show questions tagged 'anglesharp'" rel="tag">anglesharp</a> </div> <div class="started mt0"> <div class="s-user-card s-user-card"> <time class="s-user-card--time" datetime="asked Sep 20 '17 at 21:24">asked Sep 20 '17 at 21:24</time> <a href="../../users/4012499/kmusick" class="s-avatar s-avatar__32 s-user-card--avatar"> <img class="s-avatar--image" src="../../users/profiles/4012499.webp" data-jdenticon-width="32" data-jdenticon-height="32" data-jdenticon-value="kmusick" /> </a> <div class="s-user-card--info"> <a href="../../users/4012499/kmusick" class="s-user-card--link">kmusick</a> <ul class="s-user-card--awards"> <li class="s-user-card--rep" title="reputation score">75</li> <li class="s-award-bling s-award-bling__bronze" title="7 bronze badges">7</li> </ul> </div> </div> </div> </div> </div> </div> </div> <div class="mln24"> <div class="question-summary" id="question-summary-39471800"> <div class="statscontainer"> <div class="stats"> <div class="vote"> <div class="votes"> <span class="vote-count-post"><strong>5</strong></span> <div class="viewcount">votes</div> </div> </div> <div class="status "> <strong>2</strong> answers </div> </div> </div> <div class="summary"> <h3><a href="../../questions/39471800/is-anglesharp-s-htmlparser-threadsafe" class="question-hyperlink">Is AngleSharp's HtmlParser threadsafe?</a></h3> <div class="excerpt">Can I create a single private static readonly HtmlParser HtmlParser = new HtmlParser(); and use it safely across several threads? Or should I create a parser per thread or per usage to avoid concurrency issues? </div> <div class="grid ai-start jc-space-between fw-wrap"> <div class="grid gs4 fw-wrap tags "> <a href="../../questions/tagged/c#" class="post-tag grid--cell" title="show questions tagged 'c#'" rel="tag">c#</a> <a href="../../questions/tagged/.net" class="post-tag grid--cell" title="show questions tagged '.net'" rel="tag">.net</a> <a href="../../questions/tagged/html-parsing" class="post-tag grid--cell" title="show questions tagged 'html-parsing'" rel="tag">html-parsing</a> <a href="../../questions/tagged/anglesharp" class="post-tag grid--cell" title="show questions tagged 'anglesharp'" rel="tag">anglesharp</a> </div> <div class="started mt0"> <div class="s-user-card s-user-card"> <time class="s-user-card--time" datetime="asked Sep 13 '16 at 13:50">asked Sep 13 '16 at 13:50</time> <a href="../../users/42926/bruno-lopes" class="s-avatar s-avatar__32 s-user-card--avatar"> <img class="s-avatar--image" src="../../users/profiles/42926.webp" data-jdenticon-width="32" data-jdenticon-height="32" data-jdenticon-value="Bruno Lopes" /> </a> <div class="s-user-card--info"> <a href="../../users/42926/bruno-lopes" class="s-user-card--link">Bruno Lopes</a> <ul class="s-user-card--awards"> <li class="s-user-card--rep" title="reputation score">2,917</li> <li class="s-award-bling s-award-bling__gold" title="1 gold badge">1</li> <li class="s-award-bling s-award-bling__silver" title="27 silver badge">27</li> <li class="s-award-bling s-award-bling__bronze" title="38 bronze badge">38</li> </ul> </div> </div> </div> </div> </div> </div> </div> <div class="mln24"> <div class="question-summary" id="question-summary-54197407"> <div class="statscontainer"> <div class="stats"> <div class="vote"> <div class="votes"> <span class="vote-count-post"><strong>4</strong></span> <div class="viewcount">votes</div> </div> </div> <div class="status answered-accepted"> <strong>2</strong> answers </div> </div> </div> <div class="summary"> <h3><a href="../../questions/54197407/htmlparser-failed-to-load-file-or-assembly" class="question-hyperlink">HtmlParser. Failed to load file or assembly</a></h3> <div class="excerpt">Bug Report System.TypeInitializationException HResult = 0x80131534 Message = Initializer type "AngleSharp.Configuration" threw an exception. Source = AngleSharp Stack trace: in AngleSharp.Configuration.get_Default () in…</div> <div class="grid ai-start jc-space-between fw-wrap"> <div class="grid gs4 fw-wrap tags "> <a href="../../questions/tagged/c#" class="post-tag grid--cell" title="show questions tagged 'c#'" rel="tag">c#</a> <a href="../../questions/tagged/anglesharp" class="post-tag grid--cell" title="show questions tagged 'anglesharp'" rel="tag">anglesharp</a> </div> <div class="started mt0"> <div class="s-user-card s-user-card"> <time class="s-user-card--time" datetime="asked Jan 15 '19 at 10:52">asked Jan 15 '19 at 10:52</time> <a href="../../users/10530657/eusataf" class="s-avatar s-avatar__32 s-user-card--avatar"> <img class="s-avatar--image" src="../../users/profiles/10530657.webp" data-jdenticon-width="32" data-jdenticon-height="32" data-jdenticon-value="eusataf" /> </a> <div class="s-user-card--info"> <a href="../../users/10530657/eusataf" class="s-user-card--link">eusataf</a> <ul class="s-user-card--awards"> <li class="s-user-card--rep" title="reputation score">807</li> <li class="s-award-bling s-award-bling__gold" title="1 gold badge">1</li> <li class="s-award-bling s-award-bling__silver" title="12 silver badge">12</li> <li class="s-award-bling s-award-bling__bronze" title="24 bronze badge">24</li> </ul> </div> </div> </div> </div> </div> </div> </div> <div class="mln24"> <div class="question-summary" id="question-summary-46649208"> <div class="statscontainer"> <div class="stats"> <div class="vote"> <div class="votes"> <span class="vote-count-post"><strong>4</strong></span> <div class="viewcount">votes</div> </div> </div> <div class="status "> <strong>2</strong> answers </div> </div> </div> <div class="summary"> <h3><a href="../../questions/46649208/manipulating-html-document-before-displaying-into-wpf-webbrowser-control" class="question-hyperlink">Manipulating HTML document before displaying into WPF WebBrowser control</a></h3> <div class="excerpt">I have to change inner html code before showing it in the WebBrowser. Test page - http://aksmod.ru/skajrim-mod-kukri-ot-aksyonov-v5-0/ I tried to use AngleSharp.Scripting but it doesn't work correctly (the ads doesn't load) var config = new…</div> <div class="grid ai-start jc-space-between fw-wrap"> <div class="grid gs4 fw-wrap tags "> <a href="../../questions/tagged/c#" class="post-tag grid--cell" title="show questions tagged 'c#'" rel="tag">c#</a> <a href="../../questions/tagged/wpf" class="post-tag grid--cell" title="show questions tagged 'wpf'" rel="tag">wpf</a> <a href="../../questions/tagged/webbrowser-control" class="post-tag grid--cell" title="show questions tagged 'webbrowser-control'" rel="tag">webbrowser-control</a> <a href="../../questions/tagged/mshtml" class="post-tag grid--cell" title="show questions tagged 'mshtml'" rel="tag">mshtml</a> <a href="../../questions/tagged/anglesharp" class="post-tag grid--cell" title="show questions tagged 'anglesharp'" rel="tag">anglesharp</a> </div> <div class="started mt0"> <div class="s-user-card s-user-card"> <time class="s-user-card--time" datetime="asked Oct 09 '17 at 14:46">asked Oct 09 '17 at 14:46</time> <a href="../../users/7216447/ev-hyper" class="s-avatar s-avatar__32 s-user-card--avatar"> <img class="s-avatar--image" src="../../users/profiles/7216447.webp" data-jdenticon-width="32" data-jdenticon-height="32" data-jdenticon-value="Ev_Hyper" /> </a> <div class="s-user-card--info"> <a href="../../users/7216447/ev-hyper" class="s-user-card--link">Ev_Hyper</a> <ul class="s-user-card--awards"> <li class="s-user-card--rep" title="reputation score">183</li> <li class="s-award-bling s-award-bling__bronze" title="8 bronze badges">8</li> </ul> </div> </div> </div> </div> </div> </div> </div> <div class="mln24"> <div class="question-summary" id="question-summary-43540559"> <div class="statscontainer"> <div class="stats"> <div class="vote"> <div class="votes"> <span class="vote-count-post"><strong>4</strong></span> <div class="viewcount">votes</div> </div> </div> <div class="status answered-accepted"> <strong>2</strong> answers </div> </div> </div> <div class="summary"> <h3><a href="../../questions/43540559/anglesharp-extracting-formatted-text" class="question-hyperlink">AngleSharp extracting formatted text</a></h3> <div class="excerpt">I'm wondering if it's possible to extract out formatted text from a HTMLDocument using AngleSharp. I'm using the following code to extract the text. The problem I have is that the extracted text runs together, there is no break between each of the…</div> <div class="grid ai-start jc-space-between fw-wrap"> <div class="grid gs4 fw-wrap tags "> <a href="../../questions/tagged/c#" class="post-tag grid--cell" title="show questions tagged 'c#'" rel="tag">c#</a> <a href="../../questions/tagged/anglesharp" class="post-tag grid--cell" title="show questions tagged 'anglesharp'" rel="tag">anglesharp</a> </div> <div class="started mt0"> <div class="s-user-card s-user-card"> <time class="s-user-card--time" datetime="asked Apr 21 '17 at 10:39">asked Apr 21 '17 at 10:39</time> <a href="../../users/91020/bigtoe" class="s-avatar s-avatar__32 s-user-card--avatar"> <img class="s-avatar--image" src="../../users/profiles/91020.webp" data-jdenticon-width="32" data-jdenticon-height="32" data-jdenticon-value="Bigtoe" /> </a> <div class="s-user-card--info"> <a href="../../users/91020/bigtoe" class="s-user-card--link">Bigtoe</a> <ul class="s-user-card--awards"> <li class="s-user-card--rep" title="reputation score">3,372</li> <li class="s-award-bling s-award-bling__gold" title="1 gold badge">1</li> <li class="s-award-bling s-award-bling__silver" title="31 silver badge">31</li> <li class="s-award-bling s-award-bling__bronze" title="47 bronze badge">47</li> </ul> </div> </div> </div> </div> </div> </div> </div> <div class="mln24"> <div class="question-summary" id="question-summary-42736218"> <div class="statscontainer"> <div class="stats"> <div class="vote"> <div class="votes"> <span class="vote-count-post"><strong>4</strong></span> <div class="viewcount">votes</div> </div> </div> <div class="status answered-accepted"> <strong>1</strong> answer </div> </div> </div> <div class="summary"> <h3><a href="../../questions/42736218/how-to-parse-text-from-anonymous-block-in-anglesharp" class="question-hyperlink">How to parse text from anonymous block in AngleSharp?</a></h3> <div class="excerpt">I'm parsing site content using AngleSharp and i've got an issue with anonymous block. See the sample code: var parser = new HtmlParser(); var document = parser.Parse(@"<body> <div class='product'> <a href='#'><img src='img1.jpg' alt=''></a> …</div> <div class="grid ai-start jc-space-between fw-wrap"> <div class="grid gs4 fw-wrap tags "> <a href="../../questions/tagged/c#" class="post-tag grid--cell" title="show questions tagged 'c#'" rel="tag">c#</a> <a href="../../questions/tagged/anglesharp" class="post-tag grid--cell" title="show questions tagged 'anglesharp'" rel="tag">anglesharp</a> </div> <div class="started mt0"> <div class="s-user-card s-user-card"> <time class="s-user-card--time" datetime="asked Mar 11 '17 at 14:11">asked Mar 11 '17 at 14:11</time> <a href="../../users/5752652/a-k" class="s-avatar s-avatar__32 s-user-card--avatar"> <img class="s-avatar--image" src="../../users/profiles/5752652.webp" data-jdenticon-width="32" data-jdenticon-height="32" data-jdenticon-value="A K" /> </a> <div class="s-user-card--info"> <a href="../../users/5752652/a-k" class="s-user-card--link">A K</a> <ul class="s-user-card--awards"> <li class="s-user-card--rep" title="reputation score">714</li> <li class="s-award-bling s-award-bling__silver" title="17 silver badges">17</li> <li class="s-award-bling s-award-bling__bronze" title="39 bronze badges">39</li> </ul> </div> </div> </div> </div> </div> </div> </div> <div class="mln24"> <div class="question-summary" id="question-summary-34513559"> <div class="statscontainer"> <div class="stats"> <div class="vote"> <div class="votes"> <span class="vote-count-post"><strong>4</strong></span> <div class="viewcount">votes</div> </div> </div> <div class="status "> <strong>2</strong> answers </div> </div> </div> <div class="summary"> <h3><a href="../../questions/34513559/preserving-or-restoring-whitespace-in-textcontent" class="question-hyperlink">Preserving (or restoring) whitespace in TextContent</a></h3> <div class="excerpt">Using AngleSharp to process some HTML and extract the text content of an element for later mining, I've run into a problem with the way AngleSharp strips out the HTML tags. For example, I have a piece of HTML something like this (minus the newlines…</div> <div class="grid ai-start jc-space-between fw-wrap"> <div class="grid gs4 fw-wrap tags "> <a href="../../questions/tagged/c#" class="post-tag grid--cell" title="show questions tagged 'c#'" rel="tag">c#</a> <a href="../../questions/tagged/anglesharp" class="post-tag grid--cell" title="show questions tagged 'anglesharp'" rel="tag">anglesharp</a> </div> <div class="started mt0"> <div class="s-user-card s-user-card"> <time class="s-user-card--time" datetime="asked Dec 29 '15 at 14:57">asked Dec 29 '15 at 14:57</time> <a href="../../users/1250301/matt-burland" class="s-avatar s-avatar__32 s-user-card--avatar"> <img class="s-avatar--image" src="../../users/profiles/1250301.webp" data-jdenticon-width="32" data-jdenticon-height="32" data-jdenticon-value="Matt Burland" /> </a> <div class="s-user-card--info"> <a href="../../users/1250301/matt-burland" class="s-user-card--link">Matt Burland</a> <ul class="s-user-card--awards"> <li class="s-user-card--rep" title="reputation score">44,552</li> <li class="s-award-bling s-award-bling__gold" title="18 gold badges">18</li> <li class="s-award-bling s-award-bling__silver" title="99 silver badges">99</li> <li class="s-award-bling s-award-bling__bronze" title="171 bronze badges">171</li> </ul> </div> </div> </div> </div> </div> </div> </div> <div class="mln24"> <div class="question-summary" id="question-summary-32427674"> <div class="statscontainer"> <div class="stats"> <div class="vote"> <div class="votes"> <span class="vote-count-post"><strong>4</strong></span> <div class="viewcount">votes</div> </div> </div> <div class="status "> <strong>1</strong> answer </div> </div> </div> <div class="summary"> <h3><a href="../../questions/32427674/how-to-extract-data-from-website-using-anglesharp-linq" class="question-hyperlink">How to extract data from website using AngleSharp & LINQ?</a></h3> <div class="excerpt">I'm trying to extract the prices from the below mentioned website. I'm using AngleSharp for the extraction. In the website, the prices are listed below (as an example): <span class="c-price">650.00 </span> I'm using the…</div> <div class="grid ai-start jc-space-between fw-wrap"> <div class="grid gs4 fw-wrap tags "> <a href="../../questions/tagged/c#" class="post-tag grid--cell" title="show questions tagged 'c#'" rel="tag">c#</a> <a href="../../questions/tagged/linq" class="post-tag grid--cell" title="show questions tagged 'linq'" rel="tag">linq</a> <a href="../../questions/tagged/web-scraping" class="post-tag grid--cell" title="show questions tagged 'web-scraping'" rel="tag">web-scraping</a> <a href="../../questions/tagged/data-extraction" class="post-tag grid--cell" title="show questions tagged 'data-extraction'" rel="tag">data-extraction</a> <a href="../../questions/tagged/anglesharp" class="post-tag grid--cell" title="show questions tagged 'anglesharp'" rel="tag">anglesharp</a> </div> <div class="started mt0"> <div class="s-user-card s-user-card"> <time class="s-user-card--time" datetime="asked Sep 06 '15 at 19:53">asked Sep 06 '15 at 19:53</time> <a href="../../users/979127/inquisitive-one" class="s-avatar s-avatar__32 s-user-card--avatar"> <img class="s-avatar--image" src="../../users/profiles/979127.webp" data-jdenticon-width="32" data-jdenticon-height="32" data-jdenticon-value="inquisitive_one" /> </a> <div class="s-user-card--info"> <a href="../../users/979127/inquisitive-one" class="s-user-card--link">inquisitive_one</a> <ul class="s-user-card--awards"> <li class="s-user-card--rep" title="reputation score">1,465</li> <li class="s-award-bling s-award-bling__gold" title="7 gold badges">7</li> <li class="s-award-bling s-award-bling__silver" title="32 silver badges">32</li> <li class="s-award-bling s-award-bling__bronze" title="56 bronze badges">56</li> </ul> </div> </div> </div> </div> </div> </div> </div> <div class="mln24"> <div class="question-summary" id="question-summary-31996123"> <div class="statscontainer"> <div class="stats"> <div class="vote"> <div class="votes"> <span class="vote-count-post"><strong>4</strong></span> <div class="viewcount">votes</div> </div> </div> <div class="status "> <strong>2</strong> answers </div> </div> </div> <div class="summary"> <h3><a href="../../questions/31996123/how-can-i-recursively-iterate-over-a-tree-that-is-changing-during-the-traversa" class="question-hyperlink">How can I recursively iterate over a tree that is changing during the traversal?</a></h3> <div class="excerpt">I'm trying traverse a DOM tree, replacing and removing nodes using AngleSharp an HTML parser. This problem is not unique to this library, but rather a general question about how to recursively alter a tree and ensure that I'm still traversing the…</div> <div class="grid ai-start jc-space-between fw-wrap"> <div class="grid gs4 fw-wrap tags "> <a href="../../questions/tagged/c#" class="post-tag grid--cell" title="show questions tagged 'c#'" rel="tag">c#</a> <a href="../../questions/tagged/loops" class="post-tag grid--cell" title="show questions tagged 'loops'" rel="tag">loops</a> <a href="../../questions/tagged/recursion" class="post-tag grid--cell" title="show questions tagged 'recursion'" rel="tag">recursion</a> <a href="../../questions/tagged/anglesharp" class="post-tag grid--cell" title="show questions tagged 'anglesharp'" rel="tag">anglesharp</a> </div> <div class="started mt0"> <div class="s-user-card s-user-card"> <time class="s-user-card--time" datetime="asked Aug 13 '15 at 18:45">asked Aug 13 '15 at 18:45</time> <a href="../../users/1070412/grant-h" class="s-avatar s-avatar__32 s-user-card--avatar"> <img class="s-avatar--image" src="../../users/profiles/1070412.webp" data-jdenticon-width="32" data-jdenticon-height="32" data-jdenticon-value="Grant H." /> </a> <div class="s-user-card--info"> <a href="../../users/1070412/grant-h" class="s-user-card--link">Grant H.</a> <ul class="s-user-card--awards"> <li class="s-user-card--rep" title="reputation score">3,689</li> <li class="s-award-bling s-award-bling__gold" title="2 gold badges">2</li> <li class="s-award-bling s-award-bling__silver" title="35 silver badges">35</li> <li class="s-award-bling s-award-bling__bronze" title="53 bronze badges">53</li> </ul> </div> </div> </div> </div> </div> </div> </div> <div class="s-pagination pager fr"> <div class="s-pagination--item is-selected">1</div> <a class="s-pagination--item" href="../../questions/tagged/anglesharp_page=2" rel="" title="Go to page 2">2</a> <a class="s-pagination--item" href="../../questions/tagged/anglesharp_page=3" rel="" title="Go to page 3">3</a> <div class="s-pagination--item s-pagination--item__clear">…</div> <a class="s-pagination--item" href="../../questions/tagged/anglesharp_page=10" rel="" title="Go to page 10">10</a> <a class="s-pagination--item" href="../../questions/tagged/anglesharp_page=11" rel="" title="Go to page 11">11</a> <a class="s-pagination--item" href="../../questions/tagged/anglesharp_page=2" rel="next" title="Go to page 2"> Next</a> </div> </div> </div> </div> </div> <script src="../../static/js/stack-icons.js"></script> <script src="../../static/js/fromnow.js"></script> </body> </html>