import urllib. request def code_of_site(url): weburl = urllib.request.urlopen(url) code = weburl.read() return code print(code_of_site("https://www.codegrepper.com/app/index.php"))