Exemplo n.º 1
0
def min_job():
    cpys = commen.get_cpys()
    urls = commen.get_urls(cpys)
    mid_data = get_min_article_count(urls, cpys)
    em_data = get_emotion_article_count(urls, cpys)

    saveMinData(mid_data, em_data)
Exemplo n.º 2
0
def get_warning_articles(beg_time, end_time):
    indexs = get_cpys()
    warnings = {}
    for index in indexs:
        company_uuid = get_company_uuid_by_index(index)
        warnings[company_uuid] = get_articles_by_index(index, beg_time,
                                                       end_time)
    return warnings
Exemplo n.º 3
0
def get_day_article_count(urls):
    cons = {"from": "now-1d"}
    cpys = commen.get_cpys()
    return get_article_count(urls, cpys, cons)
Exemplo n.º 4
0
def day_job():
    cpys = commen.get_cpys()
    urls = commen.get_urls(cpys)
    data = get_day_article_count(urls)
    saveDayData(data)
Exemplo n.º 5
0
def my_job():
    cpys = commen.get_cpys()
    urls = commen.get_urls(cpys)
    data = get_article_count(urls, cpys)
    save_data(data)