On one of the sites for which I am writing a parser, I encountered the following problem: I need to take all the data from the table, but they are not signed in the html code and are swapped html example
The table looks like this: table
At first I used XPATH for this, but when parsing, I found that some data was swapped, such as engine and registration number, or not at all. So XPATH is not suitable, because data with mileage can get into the line with the engine in the csv file
Is it possible somehow in selenium or through bs4 to first search for a word, and then parse the data after it?
That is, what would find the word Engine in the html code, and then take the data below html text that I need