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

New Post: Count size of loaded content, or preferably transferred size

$
0
0
Hello!

First of all, thanks for a great piece of software! Neat and powerful!

I use it for a quite specialized web spider that parse selected info from a site of mine. My use of HTML Agility Pack is rather basic I think.

I'd like to keep track of how many bytes my program reads from the web. Cannot find any obvious solution for this, so I might as well ask.

Currently, I load pages more or less by using snippets like this (error handling excluded for sake of readability):
var webPage = new HtmlWeb();
HtmlDocument htmlDoc = webPage.Load(uriBillboardSearch);                    

// Some parsing...                
I was thinking of using HtmlDocument.Save() and count bytes but it seems a waste of work and it would only count what I have read, not what I have transferred from the web to my client.

I am aware of that this might not be an HTML Agility Pack thing at all, but if anyone have some ideas I would be grateful!

thanks!

/Moriarty

Viewing all articles
Browse latest Browse all 655

Trending Articles



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