Click here to Skip to main content
11,796,631 members (73,059 online)
Rate this: bad
Please Sign up or sign in to vote.
See more: .NET3.0 C# jQuery
I am using visual studio 2010 i am using httpwebrequest and httpwebresponse to get page source and for crawling the webpage i am using htmlagilitypack
I want to using :eq selector to reterive data from page source i have found out this can be done using fizzlerEx[^]
Example give in the website

using HtmlAgilityPack;
using Fizzler.Systems.HtmlAgilityPack;
var web = new HtmlWeb();
var document = web.Load("")
var page = document.DocumentNode;
foreach(var item in page.QuerySelectorAll("div.item"))
    var title = item.QuerySelector("h3:not(.share)").InnerText;
    var date = DateTime.Parse(item.QuerySelector("span:eq(2)").InnerText);
    var description = item.QuerySelector("span:has(b)").InnerHtml;

and i am trying the same
var page123 = doc.DocumentNode;
                foreach(var item in page123.QuerySelectorAll("body"))
                    var date = item.QuerySelector("b:eq(10)");

but i am getting error
"Unknown functional pseudo 'eq'. Only nth-child is supported."
please can any body help me with problem.
Posted 6-Dec-12 2:13am

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
0 Maciej Los 505
1 Abhinav S 417
2 OriginalGriff 360
3 CPallini 285
4 KrunalRohit 249
0 OriginalGriff 2,012
1 Maciej Los 1,725
2 KrunalRohit 1,310
3 CPallini 1,055
4 ppolymorphe 858

Advertise | Privacy | Mobile
Web03 | 2.8.151002.1 | Last Updated 6 Dec 2012
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100