Questions tagged [fizzler]

A .NET library to select items from a node tree based on a CSS selector.

Fizzler is a .NET library to select items from a node tree based on a CSS selector. The default implementation is based on HTMLAgilityPack and selects from HTML documents.

Fizzler supports .NET 2.0, 3.0, 3.5 and Mono.

15 questions
5
votes
3 answers

HTMLAgilityPack QuerySelectorAll throwing exception, potentially Fizzler dll version mismatch?

We recently updated a bunch of dlls in our project, including HtmlAgilityPack to their latest versions. This has made the following code which had been working start throwing errors on the first line. List foundNodes =…
James
  • 4,146
  • 1
  • 20
  • 35
4
votes
1 answer

HTML agility pack QuerySelector returns null

I'm using Fizzler for Html Agility Pack. This is my selector which works fine width jquery when I test it in firebug: $('table.adsh>tbody:nth-child(1)>tr:nth-child(4) table tr:nth-child(1)>td:nth-child(2)') But this line of code returns null in C#…
Beginner
  • 1,010
  • 4
  • 20
  • 42
2
votes
1 answer

Passing language preference to HtmlAgilityPack when retrieving web pages

my aim is to read out specific container/tags/attributes from a web site(for my hobby), everything works except getting the german translation for my value (which I usually get when manually open the site in my browser(may be the web site gets the…
1
vote
1 answer

Parse the html content in an incorrect format C#

The returned html data is in an incorrect format, I have it from Fiddler, and now I want to parse that incorrect format data, I tried to use Fizzler to parse it but it cannot read the class or id of div tags because of the incorrect format: here is…
Sam Nguyen
  • 11
  • 2
1
vote
1 answer

HTML Parsing from the table Fizzler

I have to parse the following HTML Page: This is my code of parsing using Fizzler, what I want to get is the title, rates, days (sometimes null) and price; the second price after span.But when I run my code, it just could get 2 objects from…
bluewonder
  • 767
  • 2
  • 10
  • 18
0
votes
1 answer

How to select html element with namespace with Fizzler / HtmlAgilityPack?

I am using Fizzler / HtmlAgilityPack to parse and extract elements from ASP.NET page file. In the asp.net file, we also use Telerik controls, e.g. To extract this element , I used the methods below but not success. Can…
Yang You
  • 2,618
  • 1
  • 25
  • 32
0
votes
1 answer

How to solve "The type or namespace name 'Systems' does not exist in the namespace 'Fizzler'"?

So I used Nuget to get the Fizzler package and it brought down the HTML agility pack, but now I have a compilation error when trying to use the library The type or namespace name 'Systems' does not exist in the namespace 'Fizzler' package.config…
S Meaden
  • 8,050
  • 3
  • 34
  • 65
0
votes
1 answer

Parsing HTML page using C# having problems

I've been trying to accomplish something using HtmlAgilityPack, Fizzler and Regular Expressions but had no luck. The page I am trying to scrape and parse to elements is…
J.Skeet
  • 1
  • 2
0
votes
1 answer

Fizzler HTMLAgilityPack c# CSS Selector with Colon

I'm using the HTMLAgilityPack and I'm trying to select an element ID with a colon in it. Using Fizzler.Systems.HtmlAgilityPack; Test #1 (Unknown Pseudo Class) HtmlNodeSelection.QuerySelectorAll(…
Henry
  • 2,953
  • 2
  • 21
  • 34
0
votes
1 answer

How To Use .NET Fizzler Without Relying On HtmlAgilityPack?

Fizzler is a W3C selector library for HTML documents. Nuget offers two versions: one depending on HtmlAgilityPack, one not depending on HtmlAgilityPack. I can only find documentation & example code for the project that depends on HtmlAgilityPack. I…
Jay
  • 740
  • 4
  • 8
  • 19
0
votes
1 answer

Refining HTML Agility Pack Nodes

I am using HTML Agility Pack and Fizzler (So I can use CSS selectors) to scrape a results page. I start by creating html document and then creating a list of nodes so each node is an individual result. IEnumerable sections =…
Guerrilla
  • 13,375
  • 31
  • 109
  • 210
0
votes
1 answer

Parsing HTML Page into Parent-Child Object C#

I'm parsing the html page, and I'm new to this kind of parsing, could you suggest me the idea to parse following html HTML Code : http://notepad.cc/share/CFRURbrk3r for each type of room, there are list of sub rooms so I wish to group them as…
TrangZinita
  • 107
  • 1
  • 9
0
votes
0 answers

how to crawl the content/text of a display-none-tag in a web page crawler?

i am using WebClient[c#] WebClient client = new WebClient(); client.Encoding = Encoding.UTF8; var response = client.DownloadString("http://www.iryoucai.com/PositionDefault_069.html"); var doc = new…
paul cheung
  • 748
  • 2
  • 13
  • 32
0
votes
1 answer

Parsing HTML content with C# Parser

I have the following HTML file, I want to get each H2 (Standard (Flexible Rate).. and Executive (Flexible Rate) ... with the Room Only , Breakfast Included . Then push the Room Only and Breakfast Include with 2 Prices of each into objects where I…
bluewonder
  • 767
  • 2
  • 10
  • 18
0
votes
2 answers

How to list all TD elements containing a SPAN?

I'm trying to parse a website in C# using Fizzler. My goal is to get this element: /html/body/form/div[3]/div/div/div/div/div/table/tbody/tr[18]/td[2]/span (FireBug XPath). The problem is that the TR and TD numbers are not fixed. All I know that I…
VORiAND
  • 145
  • 3
  • 17
  • 35