[Solved] Search for a local html file by name


In Python 2.x, this could be done as follows:

from bs4 import BeautifulSoup

filename = raw_input('Please enter filename: ')

with open(filename) as f_input:
    html = f_input.read()

soup = BeautifulSoup(html, "html.parser")

print soup

solved Search for a local html file by name