

from typing import List

from .keymap import KEYMAP, get_character




def 					_lowercase     (				a_				:					str				)				->	Dict:




					'''simple docstring'''







					def decorator(a_				:					Any				):
										__magic_name__							=    getattr(a_					,'handle_key'					,[]				)
										handle += [key]
										setattr(a_					,'handle_key'					,a_				)
										return func

					return decorator




def 					_lowercase     (				*a_				:					List[str]				)				->	List[Any]:




					'''simple docstring'''







					def decorator(a_				:					Tuple				):
										__magic_name__							=    getattr(a_					,'handle_key'					,[]				)
										handle += keys
										setattr(a_					,'handle_key'					,a_				)
										return func

					return decorator

class 				__UpperCamelCase				(					SCREAMING_SNAKE_CASE			):







	def __new__(   cls: Optional[int]  , __UpperCamelCase: Union[str, Any]  , __UpperCamelCase: Union[str, Any]  , __UpperCamelCase: Union[str, Any]      ):

						'''simple docstring'''





						__magic_name__							=    super().__new__(cls  , __UpperCamelCase  , __UpperCamelCase  , __UpperCamelCase      )
						if not hasattr(__UpperCamelCase  , 'key_handler'      ):
											setattr(__UpperCamelCase  , 'key_handler'  , {}      )
						setattr(__UpperCamelCase  , 'handle_input'  , KeyHandler.handle_input      )

						for value in attrs.values():
											__magic_name__							=    getattr(__UpperCamelCase  , 'handle_key'  , []      )
											for key in handled_keys:
																__magic_name__							=    value
						return new_cls







	@staticmethod
	def 	_SCREAMING_SNAKE_CASE							(   cls: Any      ):

						'''simple docstring'''





						__magic_name__							=    get_character()
						if char != KEYMAP["undefined"]:
											__magic_name__							=    ord(__UpperCamelCase      )
						__magic_name__							=    cls.key_handler.get(__UpperCamelCase      )
						if handler:
											__magic_name__							=    char
											return handler(cls      )
						else:
											return None




def 					_lowercase     (				cls				:					str				)				->	str:




					'''simple docstring'''







					return KeyHandler(cls.__name__					,cls.__bases__					,cls.__dict__.copy()				)







import requests
from bsa import BeautifulSoup




def 					_lowercase     (				a_				:					str = "https://www.worldometers.info/coronavirus"				)				->	dict:




					'''simple docstring'''







					__magic_name__							=    BeautifulSoup(requests.get(a_				).text					,'html.parser'				)
					__magic_name__							=    soup.findAll('h1'				)
					__magic_name__							=    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(a_					,a_				)}


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''')




