diff --git a/ImportCarRequests.py b/ImportCarRequests.py index ff29367..97034e3 100644 --- a/ImportCarRequests.py +++ b/ImportCarRequests.py @@ -10,13 +10,13 @@ makeCodeList='ROV', modelCodeList='DEFEND', marketExtension='true', - maxMileage=150000, - startYear=1980, - endYear=2013, - searchRadius=500, - maxPrice=100000, + maxMileage=500000, + startYear=1953, + endYear=2016, + searchRadius=10000, + maxPrice=500000, sortBy='mileageASC', - numRecords=100, + numRecords=1000, firstRecord=0, style='Truck' ) @@ -35,11 +35,16 @@ hasnav = "false" +counter=0 + if 'listings' not in data: print('NO MATCH FOUND', end='\n\r') else: for listing in data['listings']: + counter=counter+1 + print(str(counter), end='\t') + print(str(listing['id']).expandtabs(16), end='\t') if ('features' in listing): @@ -53,8 +58,15 @@ else: print('---', end='\t') + print(listing['year'], end='\t') + if('mileage' in listing['specifications']): - print(listing['specifications']['mileage']['value'].replace(',', ''), end=' ') + + if(listing['specifications']['mileage']['value'] < "300000"): + print(listing['specifications']['mileage']['value'].replace(',', ''), end=' ') + else: + print('----------$', end='\t') + if(listing['specifications']['mileage']['label'] != 'miles'): print("km".expandtabs(2), end='\t') else: