

'''simple docstring'''







import requests
from bsa import BeautifulSoup
def  UpperCAmelCase__      ( UpperCAmelCase__ = "https://www.worldometers.info/coronavirus"			)     ->     dict:
       A_		   = BeautifulSoup(requests.get(UpperCAmelCase__			).text,    """html.parser"""			)
       A_		   = soup.findAll("""h1"""			)
       A_		   = 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""")



'''simple docstring'''







import requests

__lowerCamelCase						    =      ''''''  # <-- Put your OpenWeatherMap appid here!
__lowerCamelCase						    =      '''https://api.openweathermap.org/data/2.5/'''
def  UpperCAmelCase__      ( UpperCAmelCase__ = "Chicago",    UpperCAmelCase__ = APPID			)     ->     dict:
       return requests.get(URL_BASE + """weather""",    params=locals()			).json()
def  UpperCAmelCase__      ( UpperCAmelCase__ = "Kolkata, India",    UpperCAmelCase__ = APPID			)     ->     dict:
       return requests.get(URL_BASE + """forecast""",    params=locals()			).json()
def  UpperCAmelCase__      ( UpperCAmelCase__ = 55.68,    UpperCAmelCase__ = 12.57,    UpperCAmelCase__ = APPID			)     ->     dict:
       return requests.get(URL_BASE + """onecall""",    params=locals()			).json()


if __name__ == "__main__":
      from pprint import pprint

      while True:
            __lowerCamelCase						    =      input('''Enter a location:''').strip()
            if location:
                  pprint(current_weather(location))
            else:
                  break
