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

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