Hi@akhtar,
You can use urllib module to fetch the HTML code of a webpage. I have attached one example below for your reference.
from urllib.request import urlopen
html = urlopen("http://www.google.com/").read()
print(html)
I hope this will give you some ideas.