示例#1
0
文件: core.py 项目: gefei/bbcli
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)
示例#2
0
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)
示例#3
0
文件: core.py 项目: gefei/bbcli
 def get_tickers(self):
     bbc = BBC()
     ticker_objs = bbc.get_ticker()
     return ticker_objs
示例#4
0
 def get_tickers(self):
     bbc = BBC()
     ticker_objs = bbc.get_ticker()
     return ticker_objs