(url, params={}, *, headers={}, encoding="utf-8")
Retrieve the contents of a URL

    Params:

    - url (str): target
    - params (dict): GET request payload
    - headers (dict): GET request headers
    - encoding (str): content encoding

    Returns:

    - str/dict/None

    Example:

    ```
    get("https://httpbin.org/anything", {"soup": "gazpacho"})
    ```
Retrieve the contents of a URL
Retrieve the contents of a URL
def get(url, params={}, *, headers={}, encoding="utf-8"):
    """Retrieve the contents of a URL

    Params:

    - url (str): target
    - params (dict): GET request payload
    - headers (dict): GET request headers
    - encoding (str): content encoding

    Returns:

    - str/dict/None

    Example:

    ```
    get("https://httpbin.org/anything", {"soup": "gazpacho"})
    ```
    """
    url = URL(url, params)
    opener = Opener(headers, encoding)
    try:
        return opener.read(url)
    except UnderlyingError as e:
        raise HTTPError(e.code, e.msg) from None
def get ( url , params = { } , * , headers = { } , encoding = "utf-8" ) : url = URL ( url , params ) opener = Opener ( headers , encoding ) try : return opener . read ( url ) except UnderlyingError as e : raise HTTPError ( e . code , e . msg ) from None