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

#ignore ssl errors:
ctx = ssl.create_default_context()
ctx.check_hostname = False
ctx.verify_mode = ssl.CERT_NONE

url = input('Enter URL to scrape :')
html = urllib.request.urlopen(url, context=ctx).read()
soup = BeautifulSoup(html, 'html.parser')

#x = soup.find_all('b')
#print(x)

# Retrieve all of the anchor tags
tags = soup('a')
for tag in tags:
   # Look at the parts of a tag
   #print('TAG:',tag)
   print('URL:',tag.get('href', None))
   #print('Contents:',tag.contents[0])
   #print('Attrs:',tag.attrs)

Add files via upload