"""simple docstring"""
from typing import Optional

from .. import Features, NamedSplit
from ..packaged_modules.text.text import Text
from ..utils.typing import NestedDataStructureLike, PathLike
from .abc import AbstractDatasetReader



class 					lowerCAmelCase_      (     lowerCAmelCase   ):



				"""simple docstring"""

				def __init__(			self						,      lowerCAmelCase						,      lowerCAmelCase = None						,      lowerCAmelCase = None						,      lowerCAmelCase = None						,      lowerCAmelCase = False						,      lowerCAmelCase = False						,      lowerCAmelCase = None						,      **lowerCAmelCase						,      ):






										"""simple docstring"""

										super().__init__(
										    lowerCAmelCase						,      split=lowerCAmelCase						,      features=lowerCAmelCase						,      cache_dir=lowerCAmelCase						,      keep_in_memory=lowerCAmelCase						,      streaming=lowerCAmelCase						,      num_proc=lowerCAmelCase						,      **lowerCAmelCase						,      )
										snake_case        =     path_or_paths if isinstance(lowerCAmelCase						,      lowerCAmelCase      ) else {self.split: path_or_paths}
										snake_case        =     Text(
										    cache_dir=lowerCAmelCase						,      data_files=lowerCAmelCase						,      features=lowerCAmelCase						,      **lowerCAmelCase						,      )

				def 						snake_case	(			self      ):






										"""simple docstring"""

										if self.streaming:
																snake_case        =     self.builder.as_streaming_dataset(split=self.split      )
										# Build regular (map-style) dataset
										else:
																snake_case        =     None
																snake_case        =     None
																snake_case        =     None
																snake_case        =     None

																self.builder.download_and_prepare(
																    download_config=lowerCAmelCase						,      download_mode=lowerCAmelCase						,      verification_mode=lowerCAmelCase						,      base_path=lowerCAmelCase						,      num_proc=self.num_proc						,      )
																snake_case        =     self.builder.as_dataset(
																    split=self.split						,      verification_mode=lowerCAmelCase						,      in_memory=self.keep_in_memory      )
										return dataset



"""simple docstring"""
import requests
from bsa import BeautifulSoup





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





						"""simple docstring"""






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


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


