How to Use the Python urllib.parse Module’s urlencode Method to Pass Query Parameters to the MapQuest API

In this video tutorial I go over the use of the Python urlencode method from the urllib.parse module and how you can use it to pass query parameters to the MapQuest API – specifically, how you can encode your MapQuest API key, the starting address of your trip, and the end point of your trip. We also make the Python program interactive by prompting the user for the start/end points for their directions. This script will take us right up to the opening discussions on JSON data and how we can parse important information from that data. Enjoy!

Link to Requests: HTTP for Humans Video: https://youtu.be/BkxWuROmfMg