Python Flask WT-Forms: Using 'requests' to have a form interact with the Nobel Prize API

preview_player
Показать описание
In this video we use Python, Flask, WT-Forms and the "requests" library to generate a form that allows a user to select a Nobel Prize category (physics, chemistry, etc.) as well as a year ( 2000, 2001, ...) A request is constructed and sent to the Nobel Prize API. The resulting JSON is then passed onto the form handler. Jinja is used to process and display information on the winners (laureates) of the Nobel Prize for that year and that category.
Рекомендации по теме