DEElekgolo
June 8th, 2009, 01:04 AM
I require help for an application I have in mind. I plan on making a screenshot dumper that would load this (http://www.bungie.net/Stats/Halo3/Screenshots.aspx?player=DEEhunter1) page into memory and then find all occurances of
size=full&ssid=And read the next 32 values after that into an array or variable of some sort.
(depending if I either use an array or a foreach method)
So now that it would have a bunch of video Ids. It can now dump all of them by adding
http://www.bungie.net/Stats/Halo3/Screenshots.aspx?size=full&ssid=In front of all of them and using them as download links to dump all the pictures into a folder.
Kind of a dirty method to do it but I am sure it will work.
Problem is, I'm not that good at C# and will require a lot of help.
I looked into Regex and currently got my mind hovering around a command like this.
Regex descRegex = new Regex("<p><b>Description</b></p>\n<p>(?<description>.+?)</p>", RegexOptions.Singleline);
string description = descRegex.Match(html).Groups["description"].Value.Trim();
Taken from here. (http://mhinze.com/archive/screen-scraping-tutorial-using-c-net/)
But again, not that god at C# so I'll be needing help...
size=full&ssid=And read the next 32 values after that into an array or variable of some sort.
(depending if I either use an array or a foreach method)
So now that it would have a bunch of video Ids. It can now dump all of them by adding
http://www.bungie.net/Stats/Halo3/Screenshots.aspx?size=full&ssid=In front of all of them and using them as download links to dump all the pictures into a folder.
Kind of a dirty method to do it but I am sure it will work.
Problem is, I'm not that good at C# and will require a lot of help.
I looked into Regex and currently got my mind hovering around a command like this.
Regex descRegex = new Regex("<p><b>Description</b></p>\n<p>(?<description>.+?)</p>", RegexOptions.Singleline);
string description = descRegex.Match(html).Groups["description"].Value.Trim();
Taken from here. (http://mhinze.com/archive/screen-scraping-tutorial-using-c-net/)
But again, not that god at C# so I'll be needing help...