I've managed to get to a stage where i can open up this website https://vehicleenquiry.service.gov.uk/ConfirmVehicle
Enter a vehicle registration number, click continue, click yes this is the right vehicle and continue again to the next page.
Now looking for how I can pull the Fuel type data from this website i.e. the car listed below (my parents car) will be PETROL. Can't seem to figure it out - done a lot of googling!
I'll also want to pull the cylinder capacity (CC): entry and Year of Manufacture.
def vehicleRegChecker():
from selenium import webdriver
import time
driver = webdriver.Chrome()
driver.get("https://vehicleenquiry.service.gov.uk/ConfirmVehicle")
driver.find_element_by_name("Vrm").send_keys("VX02LTE")
python_button = driver.find_elements_by_xpath("//button[@name='Continue'][@type='submit']")[0]
python_button.click()
python_button = driver.find_elements_by_xpath("//input[@data-val='true'][@type='radio']")[0]
python_button.click()
python_button = driver.find_elements_by_xpath("//button[@name='Continue'][@type='submit']")[0]
python_button.click()
vehicleRegChecker()