strawp / autotrader-miner

Single-user site for mining Autotrader.co.uk data and providing more useful searches for cars
19 stars 1 forks source link

Parse error on php sync_db.php #1

Open zasca234 opened 9 years ago

zasca234 commented 9 years ago

PHP Parse error: syntax error, unexpected 'finally' (T_FINALLY), expecting identifier (T_STRING) in /var/www/autotrader-miner/application/core/model.class.php on line 739

jack-planys commented 8 years ago

I just solved this now, it's basically because finally is a function introduced in php 5.5, if you change all the references in that file from finally to finally2 then that fixes it. However this plugin no longer seems to work anyway as the requests all fail :/

strawp commented 8 years ago

The issue with this project as with all screen scrapers is that it has to get updated every time the target site changes their layout, otherwise it fails. I've tended to use Motors.co.uk recently as they have a lot of the search options which made me write this tool already.

I will get another update out in the coming months however.

strawp commented 8 years ago

Current build should be working BTW