Supporting

If you like MediaPortal please support it by making a small donation:

         Donate to MediaPortal!

Login Form



Awards

opcz_testsieger





Home arrow Plugins + Extensions

Sport Score RSS Feed download_trans.gif Download

Description:
Description:
This is a perl script that runs from a webserver and webscrapes the current sports scores from Yahoo! Sports and
creates a RSS feed compatible with My News. In addition to the scores of the games, the feed contains the preview article
(for live games and games that haven't started) or recap article (completed games) if available.
The script currently should work for NFL, MLB, NBA, NHL, and NCAAF.

Future Features (if people want):
Eliminate need for web server [ Manual update or background task that updates every 15 min?]
Other sports

Requirements:
1) ActivePerl
Perl is a great scripting language!

2) Date::Manip Module for perl
Simple install instructions:
a) Download at http://search.cpan.org/CPAN/authors/id/S/SB/SBECK/DateManip-5.44.tar.gz
b) Create folder: C:\Perl\site\lib\Date
c) Extract Manip.pm to C:\Perl\site\lib\Date

3) A running webserver with permissions to create/delete/modify files and folders
Best bet is running IIS on your HTPC or some other trusted PC on your network

Installation:
1) Extract sports.pl, sports.config, and yahoosports.bmp to you web server
2) Make sure your web server permits the running of scripts
3) Edit sports.config to your webserver's address [http:\\localhost\] works if its running on port 80 of your HTPC.
4) Add the RSS feed to MyNews [ie. http:\\localhost\sports.pl?sport=NFL]
Note: Sports abbreviations are the ones that Yahoo! Sports uses [MLB, NFL, NBA, NHL, NCAAF]

Optional:
The script supports saving past games ( 2 weekends of games for NFL/NCAAF, 4 days of games for the rest ).
This feature is only effective if the script is run every day.
[The RSS feed by itself will only do the games for that day for MLB, NBA, and NHL. A week for the NFL and NCAAF]

5) Create a .bat file that will run the script every morning
The file should resemble the following:
cd C:\Inetpub\wwwroot\
sports.pl NFL
sports.pl NCAAF
sports.pl NHL
sports.pl MLB
The cd at the beginning is required, C:\Inetpub\wwwroot\sports.pl NFL will not work properly.

6) Set a scheduled task to run the .bat file every morning.
It should run sometime between the time games finish, and the time Yahoo! sports starts reporting on the
next days games. ( ~2am - 6am should work fine )

Submitted On:
06 Nov 2006
Submitted By:
paco83 (paco83)
File Date:
06 Nov 2006
File Author:
Brian
File Version:
1.0
File Size:
6.67Kb
File Type:
zip
Downloads:
1045
Rating:
stars/0.gifTotal Votes:0
Be the first to comment! Please sign in or register.






Newest Downloads
  • Aug 29.2008  -  LiveTV & remote PVR for Nokia Video Center
        submitted by manniainen
  • Aug 28.2008  -  My Smart Playlists
        submitted by fabien44
  • Aug 27.2008  -  MP Web Interface
        submitted by Big_Kev
  • Aug 26.2008  -  Titanium v0.4
        submitted by mattsk88
  • Aug 26.2008  -  Black & White 1080 v0.5
        submitted by aj1405
  • Aug 25.2008  -  mVids - Music Video Database
        submitted by jburnette
  • Aug 25.2008  -  MultiShortcut
        submitted by framug
  • Aug 25.2008  -  Aeon Wide Menu Generator
        submitted by Sambal
  • Aug 24.2008  -  MP RSS Ticker
        submitted by Sambal
  • Aug 24.2008  -  Cyberlink PowerCinema Remote Plugin
        submitted by lcwmax

  • Most downloaded in last 7 days
  • Xface Skin
        Downloads: 1777
  • MP-TVSeries plugin
        Downloads: 874
  • Aeon Wide 1.0
        Downloads: 777
  • Monochrome 2.2
        Downloads: 709
  • Titanium v0.4
        Downloads: 591
  • Indigo 2.2
        Downloads: 558
  • PureVisionHD 1.6
        Downloads: 507
  • Core
        Downloads: 505
  • MPTray
        Downloads: 483
  • SpinSafe 1080 v0.5
        Downloads: 446
  • MediaPortal, your digital video recorder - 2008 SourceForge.net Logo