# AUTOGENERATED! DO NOT EDIT! File to edit: nbs/00_base.ipynb (unless otherwise specified).

__all__ = ['make_soup']

# Cell

import requests
from bs4 import BeautifulSoup

# Cell
def make_soup(

     url : str
    ,parser : str = 'html.parser'
    ,**request_kwargs

)->BeautifulSoup:
    """ Returns a Beautifulsoup object for the passed URL."""

    # TODO : error handling?
    request = requests.get(url=url,**request_kwargs)
    return BeautifulSoup(request.content,parser)