Quantcast
Channel: htmlagilitypack Forum Rss Feed
Viewing all articles
Browse latest Browse all 655

New Post: Help for parsing please

$
0
0
Hi, i have some problem. I cant parsing this count, because its to complicated for me.
I'm need parse 4 different counter. I'm handle it one becuse its easy, but i cant handle facebook and twitter count.

link:http://windowsmobile.indir.com/hdtv

Need:
Image
 private void download(string urlAddress)
        {
            Uri url = new Uri(urlAddress);
            WebClient client = new WebClient();            
            client.DownloadStringAsync(url);
            client.DownloadStringCompleted += (sender, e) =>
            {
                if (e.Error == null)
                {
                    var data = e.Result;
                    var doc = new HtmlAgilityPack.HtmlDocument();
                    doc.LoadHtml(data);                   
                    var node = doc.DocumentNode;
                     var a1 = node.SelectNodes("//span[@id='fav']").ToList();
                    
                    string downtext = a1[0].InnerText;
                    
                    MessageBox.Show(downtext);
                   


                }
            };  
        }

        private void Work_Click(object sender, EventArgs e)
        {
            download("http://windowsmobile.indir.com/hdtv");
        }
i handle it first counter(fav), but cant handle facebook and twitter like/tweet counter. Please help me.

Viewing all articles
Browse latest Browse all 655

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>