import requests
from bs4 import BeautifulSoup

url = input("Enter URL: ")

html = requests.get(url).text
soup = BeautifulSoup(html, "html.parser")

links = [a.get("href") for a in soup.find_all("a") if a.get("href")]

for l in links:
    print(l)
    