class_docstr: Base class for html_form and http_auth authenticators
      
class_docstr_tok: ["Base","class","for","html_form","and","http_auth","authenticators"]
docstr: Parameters
  ----------
  url : str, optional
    URL where to find the form/login to authenticate.  If not provided, an original query url
    which will be provided to the __call__ of the authenticator will be used
  failure_re : str or list of str, optional
  success_re : str or list of str, optional
    Regular expressions to determine if login has failed or succeeded.
    TODO: we might condition when it gets ran
  session_cookies : str or list of str, optional
    Session cookies to store (besides auth response cookies)
code: def __init__(
      self,
      url=None,
      failure_re=None,
      success_re=None,
      session_cookies=None,
      **kwargs,
  ):
      """
      Parameters
      ----------
      url : str, optional
        URL where to find the form/login to authenticate.  If not provided, an original query url
        which will be provided to the __call__ of the authenticator will be used
      failure_re : str or list of str, optional
      success_re : str or list of str, optional
        Regular expressions to determine if login has failed or succeeded.
        TODO: we might condition when it gets ran
      session_cookies : str or list of str, optional
        Session cookies to store (besides auth response cookies)
      """
      super(HTTPBaseAuthenticator, self).__init__(**kwargs)
      self.url = url
      self.failure_re = ensure_list_from_str(failure_re)
      self.success_re = ensure_list_from_str(success_re)
      self.session_cookies = ensure_list_from_str(session_cookies)
  
imports: import re
  import requests
  import requests.auth
  from requests.utils import parse_dict_header
  import io
  from time import sleep
  from ..None import __version__
  from ..utils import ensure_list_from_str, ensure_dict_from_str, ensure_bytes
  from ..dochelpers import borrowkwargs
  from ..ui import ui
  from ..utils import auto_repr
  from ..support.network import get_url_filename
  from ..support.network import get_response_disposition_filename
  from ..support.network import rfc2822_to_epoch
  from ..support.cookies import cookies_db
  from ..support.status import FileStatus
  from ..support.exceptions import AccessDeniedError, AccessFailedError, CapturedException, DownloadError, UnhandledRedirectError
  from .base import Authenticator
  from .base import BaseDownloader, DownloaderSession
  from logging import getLogger
  from ..log import LoggerHelper
label_desc: Use image node_id 1 to create a new HTTPBaseAuthenticator object from inherited base classes: Authenticator with example: obj = HTTPBaseAuthenticator(url, failure_re, success_re, session_cookies)