"""simple docstring"""






from dataclasses import dataclass, field
from typing import ClassVar, Dict

from ..features import Features, Value
from .base import TaskTemplate
@dataclass(frozen=__UpperCAmelCase				)
class 				snake_case       ( __UpperCAmelCase				):




					"""simple docstring"""

					snake_case__				    = field(default="summarization"      ,    metadata={"include_in_asdict_even_if_is_default": True}				)
					snake_case__				    = Features({"text": Value("string"				)}				)
					snake_case__				    = Features({"summary": Value("string"				)}				)
					snake_case__				    = "text"
					snake_case__				    = "summary"







					@property
					def 		__lowerCAmelCase						(				self   :	List[Any]			):
									return {self.text_column: "text", self.summary_column: "summary"}




'''simple docstring'''

import requests

__a: str          =   """https://newsapi.org/v1/articles?source=bbc-news&sortBy=top&apiKey="""
def 			__UpperCamelCase       (   UpperCAmelCase     ):
 # fetching a list of articles in json format
 lowercase__				:    Optional[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>""")

