import requests
from bs4 import BeautifulSoup


def turn_request_into_soup(page: requests.models.Response):
    """
    Takes a request from Python Requests, and turns it into a bs4
    document. Returns None is there is an error

    page: Python Request Object

    returns:
    bs4.BeautifulSoup object
    """
    try:
        return BeautifulSoup(page.text, 'html.parser')
    except:
        return None