i want to delete character from my ouput like i want just the link sorry for my bad english
from bs4 import BeautifulSoup
import requests
url = 'https://cryptofaucets.cash/2021/02/01/best-free-bitcoin-faucets/'
r = requests.get(url).text
soup = BeautifulSoup(r,'lxml')
# print(soup.prettify())
l = []
for link in soup.find_all('h2'):
print(link.find_all('a')[-1])
i want ouput like this
https://satoshihero.com/en/register?
not like this
<a href="https://satoshihero.com/en/register?r=2eedd708" rel="noopener" target="_blank">SatoshiHero.com</a>
how to achieve that?