I have HTML as shown (modified to make it brief)
ht=<a class="title" href="http:/www.myref.com/1235" title="This is link to my ref">This is my ref</a>
Now from here, I want to extract the "http:/www.myref.com/1235"
ht.get_text()
gives me only the text part This is my ref.
ht.getAttribute('href')geeksforgeeks.org/get_attribute-element-method-selenium-python