Script to retrieve football results and write to a file +

Completed Posted Aug 25, 2005 Paid on delivery
Completed Paid on delivery

Nice little job here that I hope you'll be interested in...

Perl script (or PHP) needed to get football results from a site and add results to an existing text file

The script will be able to run as a unix command line (to enable

scheduling as a cron job).

The script should also be able to be called as a web page.

The script will look at each line in the file specified and lookup the the

result from a website

{[url removed, login to view]}

Each line specifies the teams and date of the match, using the date and

home team the result can be found from this website. If no result is

found, just continue onto the next one as the result may not yet be known.

If the input file already has the results columns then skip onto the next

record.

If a result is found add the result to the file (same file as the input

file) as two new columns, "Home", "Away" as comma seperated columns.

I suggest the script should output to a temporary file

({input_file}[url removed, login to view]) whilst working and then copy

({input_file}[url removed, login to view] over the {input_file} and delete the temporary

file.

If the script is called from a web page then the script should show a

formatted table of the resulting input file.

The input file is shown below.

An Example output file is shown below.

Parameters:

Test Flag [If specified then report, do not update file]

File Name [Fixtures and Results File]

We have Perl or PHP running on FreeBSD.

## Deliverables

1) Complete and fully-functional working program(s) in executable form as well as complete source code of all work done.

2) Deliverables must be in ready-to-run condition, as follows (depending on the nature of the deliverables):

a) For web sites or other server-side deliverables intended to only ever exist in one place in the Buyer's environment--Deliverables must be installed by the Seller in ready-to-run condition in the Buyer's environment.

b) For all others including desktop software or software the buyer intends to distribute: A software installation package that will install the software in ready-to-run condition on the platform(s) specified in this bid request.

3) All deliverables will be considered "work made for hire" under U.S. Copyright law. Buyer will receive exclusive and complete copyrights to all work purchased. (No GPL, GNU, 3rd party components, etc. unless all copyright ramifications are explained AND AGREED TO by the buyer on the site per the coder's Seller Legal Agreement).

## Platform

FreeBSD Perl PHP

We have WWW::Mechanize perl

library installed already.

Example Input File [url removed, login to view]

Arsenal,1,Test,4,Fulham,1.5,"Wed Aug 24, 2005"

Blackburn,1,test,Tottenham,3,"Wed Aug 24, 2005"

Bolton,2,test,Newcastle,2,"Wed Aug 24, 2005"

Chelsea,3,test,West Brom,2,"Wed Aug 24, 2005"

Scunthorpe,[url removed, login to view],Test,3.40,Southend,3.50,"Fri Aug 26, 2005"

Norwich,x,Test,3.40,Leeds,3.80,"Sat Aug 27, 2005"

Plymouth,x,Test,3.30,Hull,3.00,"Sat Aug 27, 2005"

Example Output File [url removed, login to view]

Arsenal,1,Test,4,Fulham,1.5,"Wed Aug 24, 2005",4,1

Blackburn,1,test,Tottenham,3,"Wed Aug 24, 2005",0,0

Bolton,2,test,Newcastle,2,"Wed Aug 24, 2005",2,0

Chelsea,3,test,West Brom,2,"Wed Aug 24, 2005",4,0

Scunthorpe,[url removed, login to view],Test,3.40,Southend,3.50,"Fri Aug 26, 2005"

Norwich,x,Test,3.40,Leeds,3.80,"Sat Aug 27, 2005"

Plymouth,x,Test,3.30,Hull,3.00,"Sat Aug 27, 2005"

Amazon Web Services Engineering MySQL PHP Software Architecture Software Testing Web Hosting Website Management Website Testing

Project ID: #3867021

About the project

12 proposals Remote project Active Aug 26, 2005

Awarded to:

terrastel

See private message.

$17 USD in 6 days
(51 Reviews)
4.2

12 freelancers are bidding on average $47 for this job

marr

See private message.

$38.25 USD in 6 days
(97 Reviews)
6.3
jacarandabill

See private message.

$42.5 USD in 6 days
(139 Reviews)
6.3
nekhbet

See private message.

$42.5 USD in 6 days
(206 Reviews)
6.3
BorisJijek

See private message.

$85 USD in 6 days
(39 Reviews)
5.2
juzo

See private message.

$25.5 USD in 6 days
(39 Reviews)
4.5
sting01

See private message.

$29.75 USD in 6 days
(35 Reviews)
4.4
msythe

See private message.

$59.5 USD in 6 days
(11 Reviews)
4.1
firejumpvw

See private message.

$17 USD in 6 days
(54 Reviews)
4.1
mygoldensoftvw

See private message.

$42.5 USD in 6 days
(6 Reviews)
2.3
sergeiavw

See private message.

$85 USD in 6 days
(2 Reviews)
0.0
vas2498

See private message.

$85 USD in 6 days
(0 Reviews)
0.0