


'''simple docstring'''



from collections import namedtuple

import requests
from lxml import html  # type: ignore

__UpperCAmelCase      :Dict			    =       namedtuple("covid_data", "cases deaths recovered")




def      _a     (						_lowercase :     str = "https://www.worldometers.info/coronavirus/"  ):





     '''simple docstring'''






     __UpperCAmelCase     :			Tuple  							=      '''//div[@class = "maincounter-number"]/span/text()'''
     return covid_data(*html.fromstring(requests.get(_lowercase  ).content  ).xpath(_lowercase  )  )


__UpperCAmelCase      :List[str]			    =       "Total COVID-19 cases in the world: {}\nTotal deaths due to COVID-19 in the world: {}\nTotal COVID-19 patients recovered in the world: {}"

print(fmt.format(*covid_stats()))



'''simple docstring'''



import requests

__UpperCAmelCase      :Union[str, Any]			    =       "https://newsapi.org/v1/articles?source=bbc-news&sortBy=top&apiKey="




def      _a     (						_lowercase :     str  ):





     '''simple docstring'''






     __UpperCAmelCase     :			Union[str, Any]  							=      requests.get(_NEWS_API + bbc_news_api_key  ).json()
     # each article in the list is a dict
     for i, article in enumerate(bbc_news_page['''articles''']      , 1  ):
          print(F'{i}.) {article["title"]}'  )


if __name__ == "__main__":
      fetch_bbc_news(bbc_news_api_key="<Your BBC News API key goes here>")