Consuming HTTP Services in Python Transcripts
Chapter: Welcome to the course
Lecture: Welcome to the course and what we'll cover
Login or
purchase this course
to watch this video and the rest of the course contents.
0:02
As you know, it's a services world out there, almost anything you need to interact with has an API and if there is no API, there is probably a webpage
0:12
and I am going to show you that the combination of APIs and web pages allow you to connect your app to almost anything.
0:19
So we might want to talk to github to work with source code, repositories, automated builds, maybe we want to use Twilio
0:26
for adding telephony and text services to our app, of course we want to update people through their Slack channel,
0:33
send and subscribe people to our mailing list via MailChimp charge them money over their credit cards using the Stripe APIs,
0:42
query some backend business data using Salesforce, send out some emails with SendGrid
0:48
or even manage and work with our projects offline through Basecamp. So if we want to connect our app to these types of services, and many more,
0:56
we are going to need to learn how to work with services in Python. And that's what consuming HTTP and Soap services in Python is all about.
1:05
So, whether you want to talk to github, Stripe, Basecamp or even that old fashioned Soap service that runs the backend of your business,
1:14
you are going to learn how to do that here, And by working with all this services, you'll see that you can give your app super powers.
1:21
I hope you are very excited to explore the world of services from Python with me. What are we going to cover in this course?
1:28
Well, we are going to talk primarily about transports that run over HTTP, Rest, Json over Rest or XML, or a variety of other things,
1:40
and we are even going to talk about Soap. So we are going to use Requests, we are going to use urllib2 and we are going to use urllib.requests.
1:49
Now, if you are unfamiliar with these, Requests is the most popular way to write Python clients for services,
1:55
however, sometimes we want to use stuff that is in the box if you will that comes with your Python distribution that everybody already has,
2:01
because Requests you have to install separately. So we are going to talk about Python 2's urllib2 and Python 3's urllib
2:09
and associated submodules like Requests and error and so on. Now, many of these services are going to require us to authenticate, to log in,
2:17
so we are going to see how we can do username, and password authentication to access restricted services,
2:24
we are going to work with a variety of different data formats. When we talk to these HTTP services, they might want to send us data
2:30
back in the form of Json, or xml, or super complicated xml in the form of Soap
2:36
or even binary data, so, we are going to look at how each one of these data formats is managed and worked with in Python
2:43
and how to use that kind of data from a service, and finally, if there is no service, we are also going to talk about screen scraping.
2:51
Often we'll have a direct end point that we can contact and use a well known API against, but if the data is on a webpage and there is no API,
2:59
what do you do? Well, you do screen scraping, and screen scraping will let you go
3:04
to a standard HTML page and more or less turn that HTML page into an API or series of HTML pages, so at the end of the course, the final chapter
3:13
that we are going to cover is doing basically adding services to websites that don't have services by making their webpage themselves
3:21
the thing that provides data to our app. So that is what we are going to cover, and who am I anyway?
3:26
Well, my name is Michael Kennedy, thank you so much for taking my class, hey, that's what I look like, it's nice to meet you,
3:33
you can follow me on twitter at @mkennedy and why should I be teaching this course?
3:37
Well, I've been working with Python for quite a while, I run Talk Python To Me, the number one Python podcast with over three million downloads,
3:43
so I've had the unique opportunity to interview hundreds of people who are doing amazing things in Python and many of them
3:52
have written the libraries that we are actually going to cover here, so when it makes sense, I am going to actually give you a look behind the scenes,
3:58
at the people behind some of these technologies that we are actually going to cover in this course.
4:04
I am also the creator and founder of Talk Python Training, I've written many of the courses and I have over ten years experience
4:10
teaching hundreds of in person and online courses throughout the world, so I am super excited you are at my class, it's great to meet you
4:19
and we are going to have a great time working with all of these services.