text: import requests as rq
  from bs4 import BeautifulSoup as bs
  
  top_news_url = "https://www.thedailystar.net/top-news/rss.xml"
  front_page_url = "https://www.thedailystar.net/frontpage/rss.xml"
  
  
  def items_to_object_list(items):
      """
      :param items: list of bs4 tag
      :return: python dict representation list
      """
  
      ob_items = []
      for item in items:
          it = {
              'title': item.title.text,
              'link': item.link.text,
              'description': item.description.text,
              'pubDate': item.pubDate.text
          }
          mc = item.find('media:content')
          if mc is not None:
              attr = dict()
              attr['url'] = mc['url']
              attr['fileSize'] = mc['fileSize']
              attr['type'] = mc['type']
              attr['medium'] = mc['medium']
              attr['width'] = mc['width']
              attr['height'] = mc['height']
              it['mediaContent'] = attr
  
          mt = item.find('media:thumbnail')
          if mt is not None:
              attr = dict()
              attr['url'] = mt['url']
              attr['width'] = mt['width']
              attr['height'] = mt['height']
              it['mediaThumbnail'] = attr
  
          ob_items.append(it)
      return ob_items
  
  
  def top_news():
      rssc = rq.get(top_news_url)
      soup = bs(rssc.text, features='xml')
      items = soup.find_all('item')
      return items_to_object_list(items)
  
  
  def front_page():
      rssc = rq.get(front_page_url)
      soup = bs(rssc.text, features='xml')
      items = soup.find_all('item')
      return items_to_object_list(items)
  