nSleepy
nSleepy
CC#
Created by nSleepy on 2/19/2024 in #help
Shadow root bypass by Html Agility Pack c#
Can someone help i tried to take some values from another site and use for it Html Agility Pack all work for moment, that it not show all values and then i check and saw shadow-root(open), how i can bypass it? public static String Test() { var web = new HtmlWeb(); var document = web.Load("https://gamewith.net/cod-mw3/41723");
var weapons = new List<Model>(); var productHTMLElements = document.DocumentNode.QuerySelectorAll("div.weapon_list"); foreach (var productElement in productHTMLElements) { var tr = productElement.QuerySelectorAll("tr"); var allTR = tr.Skip(1); foreach (var trr in allTR) { var td = trr.QuerySelectorAll("td"); var Name = td.First().InnerText; var scoreElement = td.Last().QuerySelector("gds-walkthrough-vote-en"); //Console.WriteLine(Name + " " + Score); } } Who need this is link for site: https://gamewith.net/cod-mw3/41723 Need to take User Rating values I tried search info in internet, but did not find anything about it
6 replies