title: Scraping hyperlinks from a table using Selenium and Python
body: <p>I have this table with two columns and unknown number of rows. I am trying to use Selenium (with Python) to scrape all the links into a list. </p>
  
  <p><a href="https://i.stack.imgur.com/bvYez.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/bvYez.png" alt="enter image description here"></a></p>
  
  <p>Goal: get all the links (one per row) from the second column into a list.</p>
  
  <pre><code>elements = driver.find_elements_by_xpath('') #for the table
  for element in elements:
      print(element.text)
  
  \#Output is:
  Penn Affiliated:
  Delaware Valley Regional Planning Commission Congestion Management Intern
  Contracts Intern
  Transit, Bike, and Pedestrian Planning
  Fabrication Lab Laser Cutter Operator
  ...
  </code></pre>
  
  <p>This prints all the rows. Now I am unsure of how to get links from the second column and all the rows.</p>
  
  <p>Here is the HTML for the table:</p>
  
  <p><a href="https://i.stack.imgur.com/75fyO.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/75fyO.png" alt="enter image description here"></a></p>
  
  <p>Thanks a lot!</p>