160 questions
0 votes
0 answers
45 views
How do I then replace the changed tags from the selection in the main document?
I am new to AngleSharp. I am processing text in the desired tags in html documents. I select tags-elements with text, then change the text in each tag in the selection. How then to replace the changed ...
0 votes
1 answer
94 views
AngleSharp does not find element using selector
Can anyone explain why this code does not find the <div /> element? I am using AngleSharp. string html = "<div class=\"styles__Accordion___blue\"><h1>Hello</h1>&...
0 votes
2 answers
4k views
Could not load file or assembly System.Memory, Version=4.0.1.1, Culture=neutral,
TL;DR I was tasked to migrate the Office add-in (VSTO) installer from Windows Installer to WiX. As usual, I created a WiX project (HearWave), added all the project files to the xml-config of the ...
0 votes
0 answers
76 views
Missing Information with Web Scraping
I want to try to divide my music files into folders divided by genre, and for ease I'm writing the code in c#. The information I need is in this div class of the html code of the google page "...
0 votes
0 answers
80 views
AngleSharp returns nothing with QuerySelectorAll
I am trying to scrape press releases from a website using c# .net 8 with AngleSharp library. Here's the anchor tags am trying to get. <a class="search-result ng-scope" ng-repeat="...
0 votes
1 answer
523 views
How to set a cookie properly in AngleSharp?
I'm writing an app to automate grabbing data from my profile on the website Criticker.com. I'm able to successfully log into the website with AngleSharp, and after I do so, I grab the cookie, but when ...
0 votes
1 answer
99 views
AngleSharp Parsing title="text"
There is this piece of HTML page code: <table cellspacing="0" id="work_outline"> <td> <div class="work_genre"> <a href="...
0 votes
1 answer
134 views
How can I write an integration test on an authorize page in a Razor app in order to access and test it?
I want to make a test that access my page that need Admin role to access it. This is my page: (Model) [Authorize(Roles = "Admin")] public class AddModel : PageModel { ...
0 votes
1 answer
53 views
AngleSharp HtmlParser inserts empty spans
library AngleSharp.HtmlParser in c# inserts empty spans input html: <div style="font-size: 16pt; font-weight: bold;">Заголовок</div> <div> <table style="font-family: Calibri; ...
0 votes
1 answer
732 views
C# AngleSharp Attribute Parsing
How to parse multiple attributes if QuerySelectorAll().GetAttribute() doesn't work? Website page example <div class="product-slider"> <!-- Sample image data --> <div ref=&...
1 vote
1 answer
347 views
Anglesharp QuerySelectorAll Syntax for "Like Tag"
Is there a way to find custom html tags using LIKE syntax in AngleSharp? I know the syntax follows CSS selectors but have not found a reference in documentation or example that works. // For all ...
0 votes
0 answers
237 views
IMDb Scraping with C# and Anglesharp: can not scrape img tag properly
I implement some IMDb scraper but my scraper gets the wrong image src value. Images are not loaded immediately and the value in src is some default image, it is not the picture of the movie because ...
2 votes
1 answer
709 views
Authorization using AngleSharp
I am trying to sign in Habr.com with AngleSharp. I can fill e-mail and password fields, but don't know how to submit the form. If you know any other ways, could you share them, please? string ...
0 votes
1 answer
560 views
AngleSharp: How to parse XML with XHTML-entities?
I've got XML to parse that mostly looks like XHTML, but according to the docs should be XML, looking like XHTML. So I resort to AngleSharp.XML to parse it. But I already fail to parse the simplest ...
-1 votes
1 answer
171 views
AngleSharp.CSS to extract fontfamily does not work
I try to extract the font family name in a css file. When looking in debug, the font family name is present, also when i modify it by a SetFontFamily, but the GetFontFamiliy does not return anything. ...