modify php scraper using some mathematics

Completed Posted 5 years ago Paid on delivery
Completed Paid on delivery

*** I think this job is nearly done, but just needs to modify to get accurate results

*** You bid now, you start now, until job complete.

Currently have a php scraper that crawls some racing site and adds the data into db.

One of the elements extracted is distance, which I would like to modify

This distance once rounded off will either subtract or add (based on the condition above)

Lets say we have for example a time of

Time = 0.87.5 at a distance of 830

First round up distance to nearest 10

i.e 833 = 830

Then we round off again to nearest 100.

830-800 (with a remainder of 30)

Then we will use use an algorithm below to determine how much time to

add to the final time.

The calculation is

30 * 0.07 + 87.5

= 89.6 + handicap which is already calculated.

############# code ##########

800 -> 899 = 0.77 (10 sec)

900 -> 999 = 0.87 (10 sec)

1000 -> 1099 = 0.97 (5 sec)

1100 -> 1199 = 1.02 (7 sec)

1200 -> 1299 = 1.09 (7 sec)

1300 -> 1399 = 1.16 (7 sec)

1400 -> 1499 = 1.23 (7 sec)

1500 -> 1599 = 1.30 (7 sec)

1600 -> 1699 = 1.37 (7 sec)

1700 -> 1799 = 1.44 (7 sec)

1800 -> 1899 = 1.51 (7 sec)

1900 -> 1999 = 1.58 (7 sec)

2000 -> 2099 = 2.05 (7 sec)

2100 -> 2199 = 2.12 (7 sec)

2200 -> 2299 = 2.19 (7 sec)

2300 -> 2399 = 2.25 (7 sec)

2400 -> 2499 = 2.32 (7 sec)

2500 -> 2599 = 2.39 (7 sec)

and so on

code based on above)

#############

10/ 10 - 1 sec per 10 metres)

5 / 10 = 0.5 sec per 10 metres)

7 / 10 = 0.7 sec per 10 metres)

JavaScript Mathematics MySQL PHP Web Scraping

Project ID: #16919942

About the project

2 proposals Remote project Active 5 years ago

Awarded to:

nekhbet

Hi, If what you described is exactly and only what you need I can do it fast. Regards Sorin

$50 USD in 102 days
(237 Reviews)
6.8

2 freelancers are bidding on average $50 for this job

stevobujica91

Hello, I'm a developer with a lot of experience in web scraping. I have completed similar tasks with 5 star quality. Please contact me over chat to discuss more.

$50 USD in 1 day
(23 Reviews)
5.0