import requests
from bs4 import BeautifulSoup


def get_and_parse_url(param):
    """
    To fetch and parse urls
    :param param:
    :type param: url object
    :rtype: object
    :return: soup: parsed html object
    """
    result = requests.get(param)
    soup = BeautifulSoup(result.text, 'html.parser')
    return soup