Overview The goal of the second project is to create a Web application using Python, Flask framework, HTML, CSS, the New York Times API and JSON documents to transmit data across the network....

1 answer below »


Overview


The goal of the second project is to create a Web application using Python, Flask framework, HTML, CSS, the New York Times API and JSON documents to transmit data across the network.



Preliminaries



  1. Create a new project in the PyCharm IDE

    1. Name the project as Project2

    2. Select new environment as virtualenv

    3. Select Python version 3.8 or 3.9



  2. Install and import packages:


    pip install flask flask-wtf wtforms requests



The project will have the follow hierarchy:


_Project2


_ _run.py


_ _Project2_Flask



_ _ _JSON_Files


_ _ _static


_ _ _templates


_ _ _ _search.html


_ _ _ _results.html


_ _ _forms.py


_ _ _main_functions.py


_ _ ___init__.py


_ _ _routes.py



Inpurple: directories


Inblue: html files


Ingreen: python files



The static directory will contain any optionaljsorcssfiles you need to design the html pages.



The JSON_Files directory will contain one .json file for your API key and possibly one or more .json files containing the data requested by the user.


In this WebApp, you can use any of the APIs available at theNewYorkTimes API(Links to an external site.),except the Top Stories API and the Most Popular Articles API. I highly recommend the Books API. Feel free to use thenltkpackage for Natural Language Processing methods (similar to what we used in the previous project). Note that usingnltkpackage is optional.


In the forms.py, please use at least 3 out the basic field instances availablehere(Links to an external site.). For example, you can ask the user to select a certain topic using a RadioField or a SelectField, you can ask the user for an integer using the IntegerField, etc.


The goal of this app is to display interesting information according to the API chosen. You will have more freedom to choose the API in this project; therefore, creativity plays an important role here.


Module 7 | Web Application Development with Flask, Part 4" style="float: left; font-weight: bold; text-transform: uppercase;">PREVIOUSNext Module:

Module 8 | Databases" style="float: right; font-weight: bold; text-transform: uppercase;">NEXT
Answered 169 days AfterNov 06, 2021

Answer To: Overview The goal of the second project is to create a Web application using Python, Flask...

Dipansu answered on Apr 25 2022
98 Votes
SOLUTION.PDF

Answer To This Question Is Available To Download

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here