Node JS Script built using puppeteer to remove the repetition and reduce the time of running car insurance quotes. Currently only supports Compare the market, but will expand to cover multiple comparison sites as well as using mixed fake names & address in your area
- Clone this repository
git clone https://github.com/SamJUK/car-insurance && cd car-insurance
- Install dependencies
npm install
- Create your config file
cp config/config.example.json config/config.json
- Go over your config settings make sure they are correct. (Available values listed below)
- Run the script (environment variables will override config ones)
reg="AA00AAA" node index.js
- ALARM
99991
= Factory Fitted Thatcham Approved Alarm/Immobiliser99992
= Factory Fitted Thatcham Approved Alarm99993
= Factory Fitted Non-Thatcham Alarm/Immobiliser99994
= Factory Fitted Non-Thatcham Alarm\#F
= Factory Fitted\#N
= None
- Driving Side
RHD
= Right hand driveLHD
= Left hand drive
- seat_count
Range(1,9)
- vehicle_value
null
= Uses default it finds
- modifications
null
= No Mods
-
Purchase Date
null
= Not bought yet{month: x, year: y}
- x
(0-11)|(jan,dec)
- y
(full year (2019,2018,2017 etc))
-
Usage
05NN
- Social, domestic and pleasure only (SDP)02YN
- Social, domestic, pleasure and commuting (SDPC)SBU
- SDPC and Business Use
-
Day Storage (Where is it kept in the day)
VKD1
- At homeVKD2
- Office or factory car parkVKD3
- Open public car parkVKD4
- Secure public car parkVKD5
- Street away from home
-
Night Storage (Where its kept at night)
4
- Drive10
- Locked Garage11
- Unlocked Garage12
- Street Outside Home13
- Street Away from Homeother
- Other
-
total_cars_at_household
range(1, 9)
-
Use of another vehicle
XVE
- No access to any other vehicles1VE
- Own another car or vanUVE
- Have use of another carCOVE
- Company car (including personal use)CXVE
- Company car (excluding personal use)
-
Title
MR
MRS
MS
MISS
-
Birth Date
day
-range(1-31)
month
-range(1-12)
year
-Full format (1992,1999,2003 etc)
-
Relationship
M
- MarriedB
- Civil PartneredS
- SingleP
- Common Law Partnered/CohabitingD
- Divorced/DissolvedA
- SeparatedW
- Widowed/Surviving Civil Partner -
Address
line1
- Mandatoryline2
- Optionalline3
- Optionalcity
- Mandatorypostcode
- Mandatory
-
Employment
type
E
- EmployedU
- UnemployedS
- Self-EmployedH
- House PersonF
- Full/Part Time EducationR
- RetiredN
- Not Employed Due To Disability/Illness
-
time_in_uk (Time lived in uk)
null
- From Birth
-
licence_location (Not needed if provisional)
uk
eu
non-eu
international
-
licence_allows_manual (Only needed if full uk licence)
-
licence_number
null
- Not providing one[seg1,seg2,seg3,seg4]
Array with segments
-
licence_age
0
- Less than 1 year1 - 25
-
licence_received
month
-range(0, 11)
year
-Full format (2019,2015,2010)
etc
-
additional_driving_qualifications
null
- None
-
medical_conditions
null
- NoneDVR
- DVLA aware - No restrictionsDV1
- DVLA aware - 1 year restricted LicenceDV2
- DVLA aware - 2 year restricted LicenceDV3
- DVLA aware - 3 year restricted LicenceDVU
- DVLA unaware
-
claims
null
- None
-
convictions
null
- None
- additional_drivers
null
- none- array of objects
-
relationship
S
- SpouseJ
- Civil PartnerW
- Common Law Partner/CohabiteeO
- Son/DaughterM
- ParentF
- Other FamilyE
- EmployeeB
- EmployerC
- Business PartnerU
- OtherR
- Brother/Sister
-
title
MR
- MrMRS
- MrsMS
- MsMISS
- Miss
-
relationship_status
M
- MarriedB
- Civil PartneredS
- SingleP
- Common Law Partnered/CohabitingD
- Divorced/DissolvedA
- SeparatedW
- Widowed/Surviving Civil Partner
-
employment_status
E
- EmployedU
- UnemployedS
- Self-EmployedH
- House PersonF
- Full/Part Time EducationR
- RetiredN
- Not Employed Due To Disability/Illness
-
employment
- job (selects first in dropdown)
- industry (selects first in dropdown)
-
time_in_uk
null
- Since birtyj
-
full_driving_licence
- true/false
-
licence_location (Not needed if provisional)
uk
eu
non-eu
international
-
licence_allows_manual (Only needed if full uk licence)
-
licence_number
null
- Not providing one[seg1,seg2,seg3,seg4]
Array with segments
-
licence_age
0
- Less than 1 year1 - 25
-
Use of another vehicle
XVE
- No access to any other vehicles1VE
- Own another car or vanUVE
- Have use of another carCOVE
- Company car (including personal use)CXVE
- Company car (excluding personal use)
-
-
main_driver
null
- DefaultMr John Doe
- prefix + fname + lname of main driver
-
cover_type
01
- Comprehensive02
- Third Party Fire and Theft03
- Third Party Only
-
monthly_payments
false
= Yearlytrue
= Monthly
-
start_date
0
- Today1 - 29
- Days+
-
Excess
0
- None50-1000
- Intervals of 50
-
NCB
range(0, 20)
-
how_did_earn_ncb
1
- With this vehicle or a previous vehicle3
- With a company vehicle4
- In another country
-
keep_up_to_date
- Empty Array = dont contact
email
sms
telephone
post