<filename>01_First_web_scrapper/01_Intro2BeautifulSoup/run_bs4.py
from urllib.request import urlopen
from bs4 import BeautifulSoup
html = urlopen("http://www.facebook.com/")
bsObj = BeautifulSoup(html.read(), "html.parser")

dom = open('facebook.html', "w")

dom.write(bsObj.prettify())
#print(bsObj.h1)
print(bsObj.prettify())

<filename>01_First_web_scrapper/01_Intro2BeautifulSoup/run_bs4.py
from urllib.request import urlopen
from bs4 import BeautifulSoup
html = urlopen("http://www.facebook.com/")
bsObj = BeautifulSoup(html.read(), "html.parser")

dom = open('facebook.html', "w")

dom.write(bsObj.prettify())
#print(bsObj.h1)
print(bsObj.prettify())

#print(bsObj.h1)