From the course: Scripting for Testers

Unlock the full course today

Join today to access over 22,500 courses taught by industry experts or purchase this course individually.

Analyzing the data: Parsing data

Analyzing the data: Parsing data - Python Tutorial

From the course: Scripting for Testers

Start my 1-month free trial

Analyzing the data: Parsing data

- [Instructor] So far we've learned how to get data from a site using Python calls. The great thing about doing this in Python is that we have that data in a place where we can further analyze it. Let's take a look at a few of the basics when it comes to playing around with data in Python. To do this we're going to take a quick look at some of the basics of programming. Don't be intimidated, we aren't going to get into the details of object oriented programming or anything like that. This is just an overview of some of the basic things that are available to us in analyzing data. I've already set up a request here that gets a user's information from the GitHub API, so let's take a look at that request. We'll print out the response.json for this and we can see that it's wrapped in these curly braces. These curly braces here indicate that this is a Python dictionary. A dictionary is one of the basic data structures in Python and there are a few helpful things to know when using them…

Contents