rta_booking_information
rta_booking_information copied to clipboard
Automatically update the centres.json file
The centers.json file is update manually. We need the script to update it regularly by looking at the available centres in the RTA website. Could be a similar script to the scrape_availability.py
Can you use Selenium's "Select" class to scrape all options from the Select Dropdown?
Select dropdown = new Select(driver.findElement(By.id("rms_batLocationSelect2")));
List<WebElement> dd = dropdown.getOptions();
//append into centres.json
Fair suggestion. The tricky part is the location and driving distance. I am currently using google sheets to do this. Need to implement this in Python using their API.
You can probably do it with Geocoding and Distance Matrix APIs from Google Maps for automation.