My image

Trent Mahaffey

Curiosity leads us to do great things

The DOM has an HTML form which is used to perform an HTTP POST request for Django to set up its API request.

Several differnet API requests are sent to Yelp from Django. Authentication and headers were parsed into the request using python's requests library. The JSONs that are returned are parsed and cleaned up before being rendered back into the front end using Django's Tag Templates.

Python was used to iterate through JSON data, retrieve additional API requests based on initial results. The script sorted and clean up the data before return the results to the front end