View Full Version : How to pull NHL stats into my website?
jacob
10-05-2006, 10:53 AM
Wasn't too sure where to post this so I thought I'd start here.
I'm wanting to pull stats from another website into my own from the NHL or some source that has database of scores/standings/etc. I have no idea how to do this and not being overly successful in my searches online. any help would be appreciated! tia!
Tyler
10-12-2006, 02:49 PM
I believe this is illegal.
But, you could look up the LWP::Simple module in Perl for this, which will grab data from a site and return it, with simple RegEx.
Andrew
12-10-2006, 04:07 PM
I would also recommend searching NHL sites to see if they have an open API which will allow you to display certain stats on your site, depending on what the API allows you to do.
iworkforthem
01-09-2007, 07:26 AM
Hm... what I will do might to get XML updates instead, and format the XML accordingly into my site. :P
propstm
02-03-2007, 04:34 PM
Hm... what I will do might to get XML updates instead, and format the XML accordingly into my site. :P
I know with the .net framework pulling in an XML file and manipulating it is pretty simple. Now we just need to find NHL stats in XML.
Or
Find a table that is neatly formatted, parse out the fields of interest, then display them as needed? I was going to see parse out the fields into an xml file (sorry that was a lab i had to do last week for school random file to xml)
propstm
02-03-2007, 04:52 PM
ok, quick google search gave me this directory of downloadable NHL stats.
http://www.sportsinteractive.com/Stats.asp?SportID=1
I'm assuming pick your poison, then figure out how to parse the file into your site.
vBulletin® v3.7.2, Copyright ©2000-2009, Jelsoft Enterprises Ltd.