I am trying to extract the information from a link from a page that is structured as such:
...
$725,000 Available*
Washington Street Studios
1410 Washington Street SW
Albany, Oregon, 97321
I tried targeting elements with attribute 'align = left' and iterating over it but that didn't work out. If anybody could help me locate the element (multiple tags like these within the same page) with selenium I would appreciate it.
解决方案
From what we have provided at the moment, there is a table and you have the desired links in a specific column. There are no "data-oriented" attributes to rely on, but using column index to locate the links looks good enough:
for row in driver.find_elements_by_css_selector("table#myid tr"):
cells = row.find_elements_by_tag_name("td")
print(cells[2].text) # put a correct index here