def get_top_stories(): bbc = BBC() news = bbc.get_top_stories() if news == None: pass else: for i, story in enumerate(news[:30]): yield BBCNews(i, story)
def get_tickers(self): bbc = BBC() ticker_objs = bbc.get_ticker() return ticker_objs