In: Computer Science
a) write a python programme for converting url.to html please provide valid code and please share screenshots to me
Please execute the below code .
Step 1: import the library urllib
Step2 : Give the url you want to convert into html to url open method.
Step 3:use url.read() method to store the html code of the corresponding url
Step 4: print the html code that is stored in the step 3
import urllib.request
url =urllib.request.urlopen('https://www.example.com/')
data = url.read()
print (data)
Please find the below attached screenshots of code and output
If any doubts comment below so that I can respond. ::)