def applicants_and_mentors_page(): title = "Applicants and mentors page" query = common.fetch_data( queries.applicants_and_mentors_(common.get_cursor())) return render_template("page.html", title=title, table=query)
def contacts_page(): title = "Contacts page" query = common.fetch_data(queries.contacts(common.get_cursor())) return render_template("page.html", title=title, table=query)
def mentors_by_country_page(): title = "Mentors by country page" query = common.fetch_data(queries.mentors_by_country(common.get_cursor())) return render_template("page.html", title=title, table=query)
def all_school_page(): title = "All school page" query = common.fetch_data(queries.all_school(common.get_cursor())) return render_template("page.html", title=title, table=query)
def mentors_and_schools_page(): title = "Mentors and schools page" query = common.fetch_data(queries.mentors_and_schools(common.get_cursor())) return render_template("page.html", title=title, table=query)
from pprint import pprint import pandas as pd from common import (get_url, fetch_data) url = 'http://www.kobis.or.kr/kobisopenapi/webservice/rest/movie/searchMovieI\ nfo.json' # 명량: 20129370 params = dict(movieCd=20129370) url0 = get_url(url, params) data = fetch_data(url0) pprint(data) ''' movieListResult/movieList '''