Exemplo n.º 1
0
def med_services():

    stock_data, covid_data = get_data.main()

    topic = 'covid-19 medical services'
    article_count = 5
    articles = get_data.get_articles(topic, article_count)

    return render_template('med_services.html',
                           covid_data=covid_data,
                           stock_data=stock_data,
                           articles=articles)
Exemplo n.º 2
0
def retail():

    stock_data, covid_data = get_data.main()

    topic = 'covid-19 retail industry'
    article_count = 5
    articles = get_data.get_articles(topic, article_count)

    return render_template('retail.html',
                           covid_data=covid_data,
                           stock_data=stock_data,
                           articles=articles)
Exemplo n.º 3
0
def index():

    stock_data, covid_data = get_data.main()

    topic = 'covid-19'
    article_count = 5
    articles = get_data.get_articles(topic, article_count)

    return render_template('index.html',
                           covid_data=covid_data,
                           stock_data=stock_data,
                           articles=articles)
Exemplo n.º 4
0
def delivery():

    stock_data, covid_data = get_data.main()

    topic = 'covid-19 delivery industry'
    article_count = 5
    articles = get_data.get_articles(topic, article_count)

    return render_template('delivery.html',
                           covid_data=covid_data,
                           stock_data=stock_data,
                           articles=articles)
Exemplo n.º 5
0
def home():
    return render_template("index.html",
                           data=get_data.get_google_links(
                               get_data.get_articles()))