'Parses URL for HTML
:param url: URL where file retrieved
:param filename: filename of html data to parse
:return: json object of URL and html data'

def get_html_data_from_file(self, url, filename):

    html_data = open(filename).read()
    url = url[:url.rindex('/')]
    if filename.find('/'):
        filename = filename[(filename.rindex('/') + 1):]
    url = '{}/{}'.format(url, filename)
    return_data = {'URL': url, 'html_data': html_data}
    return return_data
