import requests


def get_resource(url: str):
    """ Common function to make and get result

    Args:
        url (str): url for request

    Returns:
        response object or None
    """
    response = requests.get(url)

    if response.ok:
        return response
    return None