0

I'm trying to get all the links in a webpage, but they are output as the HTML tag for the link (e.g. <a href="www.website.com"></a>). How do I get a URL from this?

My code:

page = requests.get(URL)
soup = BeautifulSoup(page.content, "html.parser")
soup.find_all("a", href=True)

0 Answers0