I am trying to retrieve the data from the webpage has the html in below
This should do it for you:
self.driver.find_element_by_css_selector('.someclass a').get_attribute('href')