def home_api_data(name): data = parser_data(name) return json.dumps(data)
def home_template_get(name): return render_template('/home/module/{}.html'.format(name), data=parser_data(name))
def home_template_get_1(): data = parser_data('weather') return json.dumps(data)
def btc_balance(): return json.dumps(parser_data('blockMarket'))
def zhihu_daily(): data = parser_data('zhihuDaily') return render_template('home/module/zhihu_daily.html', **locals())
def future_weather(): data = parser_data('futureWeather') return render_template('home/module/future_weather.html', **locals())
def home_data(name): return json.dumps(parser_data(name))
from app.parsers import parser_data if __name__ == '__main__': # print(parser_data('futureWeather')) print(parser_data('weather'))