#Week_4_Class3.py

import urllib.request, urllib.parse, urllib.error
from bs4 import BeautifulSoup

url=input('Enter - ')
html=urllib.request.urlopen(url).read()
soup=BeautifulSoup(html, 'html.parser')

#Retrieve all of the anchor tags
tags=soup('a') #list of  anchor text
for tag in tags:
    print(tag.get('href',None))
