"""simple docstring"""
from typing import Callable, Optional

from .. import Features
from ..packaged_modules.generator.generator import Generator
from .abc import AbstractDatasetInputStream



class 					lowerCAmelCase_      (     lowerCAmelCase   ):



    """simple docstring"""

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






          """simple docstring"""

          super().__init__(
              features=lowerCAmelCase						,      cache_dir=lowerCAmelCase						,      keep_in_memory=lowerCAmelCase						,      streaming=lowerCAmelCase						,      num_proc=lowerCAmelCase						,      **lowerCAmelCase						,      )
          snake_case        =     Generator(
              cache_dir=lowerCAmelCase						,      features=lowerCAmelCase						,      generator=lowerCAmelCase						,      gen_kwargs=lowerCAmelCase						,      **lowerCAmelCase						,      )

    def 						snake_case	(			self      ):






          """simple docstring"""

          if self.streaming:
                snake_case        =     self.builder.as_streaming_dataset(split='train'      )
          # 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='train'						,      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""")


