Check out example codes for "python get html from url". It will help you in understanding the concepts better.

Code Example 1

import requests

url = requests.get("http://google.com")
htmltext = url.text

Code Example 2

import urllib.request		#pip install concat("urllib", number of current version)

my_request = urllib.request.urlopen("INSERT URL HERE")

my_HTML = my_request.read().decode("utf8")

print(my_HTML)

Learn ReactJs, React Native from akashmittal.com