Beispiel #1
0
def home_api_data(name):
    data = parser_data(name)
    return json.dumps(data)
Beispiel #2
0
def home_template_get(name):
    return render_template('/home/module/{}.html'.format(name), data=parser_data(name))
Beispiel #3
0
def home_template_get_1():
    data = parser_data('weather')
    return json.dumps(data)
Beispiel #4
0
def btc_balance():
    return json.dumps(parser_data('blockMarket'))
Beispiel #5
0
def zhihu_daily():
    data = parser_data('zhihuDaily')
    return render_template('home/module/zhihu_daily.html', **locals())
Beispiel #6
0
def future_weather():
    data = parser_data('futureWeather')
    return render_template('home/module/future_weather.html', **locals())
Beispiel #7
0
def home_data(name):
    return json.dumps(parser_data(name))
Beispiel #8
0
from app.parsers import parser_data

if __name__ == '__main__':
    # print(parser_data('futureWeather'))
    print(parser_data('weather'))