from bs4 import BeautifulSoup


def create_soup(url):
    """
    Create soup object from url
    """
    try:
        html_report_part1 = open(url,'r')
        soup = BeautifulSoup( html_report_part1, "html.parser")
        return soup
    except Exception as e:
        print("[ERROR] Error occurred in requesting html from Migros, requested url: {} is unavailable.".format(url))
        print("[ERROR] Error message: {}".format(e))