예제 #1
0
def get_curious_articles():
    a = Parser.get_urls_with_threshold(bt.overall(), "Analytical")
    b = list()
    if len(a) < 5:
        b = Parser.get_urls_with_threshold(bt.business(), "Analytical")
    return __merge_lists(a, b)[:5]
예제 #2
0
def get_happy_articles():
    a = Parser.get_urls_with_threshold(bt.overall(), "Joy", threshold=0.55)
    b = list()
    if len(a) < 5:
        b = Parser.get_urls_with_threshold(bt.sports(), "Joy")
    return __merge_lists(a, b)[:5]
예제 #3
0
def get_fear_articles():
    a = Parser.get_urls_with_threshold(bt.overall(), "Fear")
    b = list()
    if len(a) < 5:
        b = Parser.get_urls_with_threshold(bt.business(), "Fear")
    return __merge_lists(a, b)[:5]