Very new to Python and struggling to get the hang of it, im needing to retrieve a webpage via its url, and return its contents. The contents will be parsed later to find hyperlinks etc using regular expressions. (Im not wanting to use beautifulsoup)
import urllib.request
url = "http://stackoverflow.com"
f = urllib.urlopen(url)
print (f.read())
I realise my answer is probably very wrong but any pointer in the right direction would be great.