Parsing STHS html output

If you need help building your website, this is the place to hang out. If you're an HTML, PHP, Perl or web database geek, check it out. / Si vous avez besoin d'aide pour construire votre site web, c'est le forum à regarder! Si vous êtes un expert en HTML, PHP, Perl ou en base de données, c'est le forum pour vous!
Post Reply
NHA
The Accomplished One / L'Accompli
Posts: 53
Joined: Sat May 12, 2007 7:52 pm

Parsing STHS html output

Post by NHA »

Hey everyone. I've already made a ton of features for my league, and next up I'm looking to parse (read) the html pages that STHS outputs and dump the data into a database.

Has anyone been able to do this?

Thanks!

Mike
http://www.nhahockey.com
Foo
The SuperStar
Posts: 1566
Joined: Thu Dec 29, 2005 12:56 pm

Re: Parsing STHS html output

Post by Foo »

I'm parsing boxscores and powerrankings
Image
Image
Image
Ultimate Hockey League
New in Town / Le Ptit Nouveau
Posts: 17
Joined: Thu May 25, 2006 4:46 pm

Re: Parsing STHS html output

Post by Ultimate Hockey League »

Our league has been parsing FHL box scores, transactions, lines, and injury/suspension lists for some time utilizing an asp.net script for several seasons now. We'll be doing the same for STHS once we start up the new sim next season.

It does take some time and technical skill, but it can be done. The STHS format actually makes it a lot easier, as you don't have to run a series of algorithms trying to determine the player now that STHS displays the full name rahter than just the last name (for example, one team in our league has both Sedins. What a nightmare!)

Having the box scores outputted in XML with sim-generated playerids would go a long way to making that easy for everybody, but I'm guessing that won't be an option for some time as focus stays on improving the sim itself.
The Ultimate Hockey League - established 1995
http://www.ultimatehockeyleague.net
Post Reply