From the course: Skill Up with Python: Hands-On Web Development Projects

Unlock this course with a free trial

Join today to access over 24,400 courses taught by industry experts.

Complete the application

Complete the application

- Alright, so now that we know how to make basic requests to the open weather, API, the exciting part is that pretty much all of the data and functionality that this API provides us with is there for the taking. So what we're going to do here is we're going to take the basic request that we've been able to make and we're going to allow the user, right, that is us running the application, to customize this request and basically load data for whatever location they want. So here's what this is going to look like. Before we actually make that request, we're going to get input from the user as to what location we should make a request to. So here's what that's going to look like. We'll say location equals, and then we'll just use the input function in Python to get input from the user. We'll say something like please enter the location or to look up whether weather in, all right? And that will, the user will obviously be able to enter in a string whatever location they want. And what…

Contents