If you already have the anchor, grab the href attribute like this:
href = anchor["href"]
1
votes
link.get('href')
in which 'link' is the name of your 'a' tag
We use cookies to ensure that we give you the best experience on our website. If you continue to use this site we will assume that you are happy with it.OkRead more