


import functools
import logging
import os
import sys
import threading
from logging import (
    CRITICAL,  # NOQA
    DEBUG,  # NOQA
    ERROR,  # NOQA
    FATAL,  # NOQA
    INFO,  # NOQA
    NOTSET,  # NOQA
    WARN,  # NOQA
    WARNING,  # NOQA
)
from typing import Optional

import huggingface_hub.utils as hf_hub_utils
from tqdm import auto as tqdm_lib


UpperCAmelCase__   	=							threading.Lock()
UpperCAmelCase__   	=							None

UpperCAmelCase__   	=							{
    '''debug''': logging.DEBUG,
    '''info''': logging.INFO,
    '''warning''': logging.WARNING,
    '''error''': logging.ERROR,
    '''critical''': logging.CRITICAL,
}

UpperCAmelCase__   	=							logging.WARNING

UpperCAmelCase__   	=							True
def 				UpperCAmelCase_					(							)     ->			Any:







 """simple docstring"""


 _lowercase							      =os.getenv('''TRANSFORMERS_VERBOSITY'''     ,						__snake_case						)
 if env_level_str:
  if env_level_str in log_levels:
   return log_levels[env_level_str]
  else:
   logging.getLogger().warning(
       F"Unknown option TRANSFORMERS_VERBOSITY={env_level_str}, "
       F"has to be one of: { ', '.join(log_levels.keys()						) }"						)
 return _default_log_level
def 				UpperCAmelCase_					(							)     ->			str:







 """simple docstring"""


 return __name__.split('''.'''						)[0]
def 				UpperCAmelCase_					(							)     ->			logging.Logger:







 """simple docstring"""


 return logging.getLogger(_get_library_name()						)
def 				UpperCAmelCase_					(							)     ->			None:







 """simple docstring"""


 global _default_handler

 with _lock:
  if _default_handler:
   # This library has already configured the library root logger.
   return
  _lowercase							      =logging.StreamHandler()  # Set sys.stderr as stream.
  _lowercase							      =sys.stderr.flush

  # Apply our default configuration to the library root logger.
  _lowercase							      =_get_library_root_logger()
  library_root_logger.addHandler(_default_handler						)
  library_root_logger.setLevel(_get_default_logging_level()						)
  _lowercase							      =False
def 				UpperCAmelCase_					(							)     ->			None:







 """simple docstring"""


 global _default_handler

 with _lock:
  if not _default_handler:
   return

  _lowercase							      =_get_library_root_logger()
  library_root_logger.removeHandler(_default_handler						)
  library_root_logger.setLevel(logging.NOTSET						)
  _lowercase							      =None
def 				UpperCAmelCase_					(							)     ->			Optional[Any]:







 """simple docstring"""


 return log_levels
def 				UpperCAmelCase_					(							__snake_case = None						)     ->			logging.Logger:







 """simple docstring"""


 if name is None:
  _lowercase							      =_get_library_name()

 _configure_library_root_logger()
 return logging.getLogger(__snake_case						)
def 				UpperCAmelCase_					(							)     ->			int:







 """simple docstring"""


 _configure_library_root_logger()
 return _get_library_root_logger().getEffectiveLevel()
def 				UpperCAmelCase_					(							__snake_case						)     ->			None:







 """simple docstring"""


 _configure_library_root_logger()
 _get_library_root_logger().setLevel(__snake_case						)
def 				UpperCAmelCase_					(							)     ->			str:







 """simple docstring"""


 return set_verbosity(__snake_case						)
def 				UpperCAmelCase_					(							)     ->			List[str]:







 """simple docstring"""


 return set_verbosity(__snake_case						)
def 				UpperCAmelCase_					(							)     ->			List[str]:







 """simple docstring"""


 return set_verbosity(__snake_case						)
def 				UpperCAmelCase_					(							)     ->			List[Any]:







 """simple docstring"""


 return set_verbosity(__snake_case						)
def 				UpperCAmelCase_					(							)     ->			None:







 """simple docstring"""


 _configure_library_root_logger()

 assert _default_handler is not None
 _get_library_root_logger().removeHandler(_default_handler						)
def 				UpperCAmelCase_					(							)     ->			None:







 """simple docstring"""


 _configure_library_root_logger()

 assert _default_handler is not None
 _get_library_root_logger().addHandler(_default_handler						)
def 				UpperCAmelCase_					(							__snake_case						)     ->			None:







 """simple docstring"""


 _configure_library_root_logger()

 assert handler is not None
 _get_library_root_logger().addHandler(__snake_case						)
def 				UpperCAmelCase_					(							__snake_case						)     ->			None:







 """simple docstring"""


 _configure_library_root_logger()

 assert handler is not None and handler not in _get_library_root_logger().handlers
 _get_library_root_logger().removeHandler(__snake_case						)
def 				UpperCAmelCase_					(							)     ->			None:







 """simple docstring"""


 _configure_library_root_logger()
 _lowercase							      =False
def 				UpperCAmelCase_					(							)     ->			None:







 """simple docstring"""


 _configure_library_root_logger()
 _lowercase							      =True
def 				UpperCAmelCase_					(							)     ->			None:







 """simple docstring"""


 _lowercase							      =_get_library_root_logger().handlers

 for handler in handlers:
  _lowercase							      =logging.Formatter('''[%(levelname)s|%(filename)s:%(lineno)s] %(asctime)s >> %(message)s'''						)
  handler.setFormatter(__snake_case						)
def 				UpperCAmelCase_					(							)     ->			None:







 """simple docstring"""


 _lowercase							      =_get_library_root_logger().handlers

 for handler in handlers:
  handler.setFormatter(__snake_case						)
def 				UpperCAmelCase_					(							self     ,						*__snake_case     ,						**__snake_case						)     ->			Union[str, Any]:







 """simple docstring"""


 _lowercase							      =os.getenv('''TRANSFORMERS_NO_ADVISORY_WARNINGS'''     ,						__snake_case						)
 if no_advisory_warnings:
  return
 self.warning(*__snake_case     ,						**__snake_case						)


UpperCAmelCase__   	=							warning_advice
@functools.lru_cache(__snake_case						)
def 				UpperCAmelCase_					(							self     ,						*__snake_case     ,						**__snake_case						)     ->			Union[str, Any]:







 """simple docstring"""


 self.warning(*__snake_case     ,						**__snake_case						)


UpperCAmelCase__   	=							warning_once







class       lowerCamelCase__   :





     def __init__(self		,     *UpperCAmelCase		,     **UpperCAmelCase       )     ->   str:  # pylint: disable=unused-argument
      _lowercase							      =args[0] if args else None





     def __iter__(self       )     ->   Any:
      return iter(self._iterator       )





     def __getattr__(self		,     UpperCAmelCase       )     ->   str:

      def empty_fn(*UpperCAmelCase		,     **UpperCAmelCase       ):  # pylint: disable=unused-argument
       return

      return empty_fn





     def __enter__(self       )     ->   List[Any]:
      return self





     def __exit__(self		,     UpperCAmelCase		,     UpperCAmelCase		,     UpperCAmelCase       )     ->   int:
      return







class       lowerCamelCase__   :





     def __call__(self		,     *UpperCAmelCase		,     **UpperCAmelCase       )     ->   Union[str, Any]:
      if _tqdm_active:
       return tqdm_lib.tqdm(*UpperCAmelCase		,     **UpperCAmelCase       )
      else:
       return EmptyTqdm(*UpperCAmelCase		,     **UpperCAmelCase       )





     def      __A					(self		,     *UpperCAmelCase		,     **UpperCAmelCase       )     ->   int:
      _lowercase							      =None
      if _tqdm_active:
       return tqdm_lib.tqdm.set_lock(*UpperCAmelCase		,     **UpperCAmelCase       )





     def      __A					(self       )     ->   Tuple:
      if _tqdm_active:
       return tqdm_lib.tqdm.get_lock()



UpperCAmelCase__   	=							_tqdm_cls()
def 				UpperCAmelCase_					(							)     ->			bool:







 """simple docstring"""


 global _tqdm_active
 return bool(_tqdm_active						)
def 				UpperCAmelCase_					(							)     ->			Dict:







 """simple docstring"""


 global _tqdm_active
 _lowercase							      =True
 hf_hub_utils.enable_progress_bars()



def 				UpperCAmelCase_					(							)     ->			Optional[int]:







 """simple docstring"""


 global _tqdm_active
 _lowercase							      =False
 hf_hub_utils.disable_progress_bars()





import requests
from bsa import BeautifulSoup
def 				UpperCAmelCase_					(							__snake_case = "https://www.worldometers.info/coronavirus"						)     ->			dict:







 """simple docstring"""


 _lowercase							      =BeautifulSoup(requests.get(__snake_case						).text     ,						'''html.parser'''						)
 _lowercase							      =soup.findAll('''h1'''						)
 _lowercase							      =soup.findAll('''div'''     ,						{'''class''': '''maincounter-number'''}						)
 keys += soup.findAll('''span'''     ,						{'''class''': '''panel-title'''}						)
 values += soup.findAll('''div'''     ,						{'''class''': '''number-table-main'''}						)
 return {key.text.strip(): value.text.strip() for key, value in zip(__snake_case     ,						__snake_case						)}


if __name__ == "__main__":
  print('''\033[1m''' + '''COVID-19 Status of the World''' + '''\033[0m\n''')
  for key, value in world_covidaa_stats().items():
    print(f'''{key}\n{value}\n''')

