Request the page and return the soup.

def get_soup(url):
    """Request the page and return the soup."""
    html = requests.get(url, stream=True, headers=HEADERS)
    if html.status_code != 404:
        return BeautifulSoup(html.content, 'html.parser')
    else:
        return None