Consuming HTTP Services in Python Transcripts
Chapter: Initial HTTP GET requests with the requests package
Lecture: Concept: A simple GET with requests

Login or purchase this course to watch this video and the rest of the course contents.
0:01 So that was simple, right, the whole promise of Requests
0:04 is that it makes doing simple operations simple and easy and straightforward,
0:08 I certainly think that that operation fit the bill.
0:11 We start by importing Requests, and then we just do get url
0:16 to actually download the response, now this is a blocking call,
0:20 it's not going to return it's we've actually gone to the server,
0:22 looked up the dns for done the get, got the response,
0:26 entirely downloaded it so this is a blocking call, and we have response
0:29 and it has both the status code set so we also have headers and cookies
0:33 and things like that and we can access the text property,
0:36 so here we are just printing out, here is the first 500 characters that we got,
0:40 just see what this was all about,
0:42 now this was really cool that we could go do this simple get against the website,
0:46 but what we want to work with are actually services,
0:48 things that are meant to talk, computer to computer,
0:51 program to program, not program to humans or program to browser to humans,
0:56 however you want to think about it, so that is what we are going to do next.