so I've downloaded the HTML of a web page. I'm supposed to extract all of the links from the HTML and output them. Here is my code
f = open('html.py','r')
heb = f.readlines()
arry = []
if 'href' in heb:
arry = arry.append(href)
print(arry)
I'm trying to make a list of the links and output it, but honestly I'm pretty lost. Can someone point me in the right direction? I was thinking regex probably is the way to go thanks