Consuming HTTP Services in Python

Consuming HTTP Services in Python

English | MP4 | AVC 1280×720 | AAC 44KHz 2ch | 3h 43m | 1.87 GB

This course will show you how easy it is to consume a wide variety of web services using Python. You will be comfortable working with a variety of web and HTTP services. In addition to core package APIs, you will learn the ins-and-outs of HTTP RESTful services and their data types.

What’s this course about and how is it different?
The goal of this online video course is to show you how to integrate with a variety of HTTP based web services.

As you know, it’s a services world out there. There are literally 1,000’s of amazing APIs you can integrate into your applications. Whether it’s Slack or Twilio to add communication, GitHub, Trello, or BitBucket for development and deployment, or even Stripe for payments, you can dramatically boost your application’s features and power by adding services.

In addition to learning the APIs to integrate HTTP, REST, XML, SOAP services and web scraping into your application, you will learn the theory and concepts behind.

You’ll even learn to work with a number of data formats including JSON, XML, HTML, SOAP

Who is this course for?
It’s for people who have some programming / scripting experience and want to improve their Python knowledge. Maybe you:

  • Want to add services to your local apps or your web apps
  • Are a developer adding integration with existing services
  • Are a data scientists looking to harvest data from the internet
  • Are a developer who needs to integrate with legacy SOAP services
  • Would like to understand the concepts behind HTTP / REST services

If any of those descriptions fit you, then you’re my target student. I wrote this course for you.

What services will we use?
We will create a number of demo applications in Python throughout this course. These applications will integrate with a variety of services and work with a number of data formats including:

  • GitHub (list public repos for a user)
  • api.github.com
  • Blog explorer (three versions: requests, py2, py3)
  • consumer_services_api.talkpython.fm
  • RSS Feed Reader
  • talkpython.fm/rss
  • MP3 / podcast downloader (binary file examples)
  • talkpython.fm
  • Course Playground Service
  • HTTP / REST version: /api/blog
  • HTTP / REST version (auth): /api/restricted/blog
  • SOAP version: /soap?wsdl
  • Scraping and analyzing 80 hours of transcripts on talkpython.fm
  • E.g. talkpython.fm/episodes/transcript/67/property-based-testing-with-hypothesis
Table of Contents

1 Welcome to the course and what well cover
2 Course setup Python 3 and a little 2
3 Editor options and PyCharm
4 Exploring APIs with Postman
5 Get the source code for the course
6 Video player A quick feature tour
7 Service type Raw sockets
8 Service type SOAP
9 Service type HTTP and REST
10 Service type Message queues
11 Getting started with requests
12 A clean environment for our course
13 Installing requests in PyCharm
14 Concept installing requests
15 A simple GET with requests
16 Concept A simple GET with requests
17 Working with JSON from Python
18 Demo JSON from Python
19 Concept JSON from Python
20 Consuming GitHub JSON API
21 Concept Consuming GitHub JSON API
22 XML chapter introduction
23 Working with XML from Python
24 Concept Working with XML from Python
25 Consuming XML data from an HTTP service
26 Concept Consuming XML data from an HTTP service
27 Binary data from services introduction
28 A podcast MP3 downloader binary downloader
29 Concept Binary downloads with requests
30 HTTP and REST building blocks
31 The HTTP verb meanings
32 Exploring the Basecamp HTTP API
33 Introduction to modifying data via HTTP
34 Introducing the Talk Python blog service
35 Welcome to the blog explorer app
36 Blog explorer Getting posts
37 Blog explorer Creating a post
38 Concept Creating a post with requests
39 Blog explorer Updating a post
40 Concept updating a post with requests
41 Blog explorer Deleting a post
42 Concept Deleting a post with requests
43 Introduction to Pythons builtin HTTP clients
44 Python 2 Blog explorer with urllib2
45 Python 2 Blog explorer update a post with urllib2
46 Python 3 Blog explorer Getting posts with urllibrequest
47 Python 3 Blog explorer Adding a post with urllibrequest
48 Python 3 Blog explorer deleting a post with urllibrequest
49 Concept Python 3s urllib
50 Introduction to developing with SOAP services
51 SOAP services from a toolbased ecosystem
52 Concept SOAP services from a toolbased ecosystem
53 Introduction to the suds package
54 Installing suds for Python 3
55 Blog explorer Via SOAP and suds
56 Concept Using suds
57 Concept Complex types in suds
58 Introduction to authenticated services
59 Be cautious with basic authentication
60 Authenticated HTTP service overview
61 Making authenticated requests with requests
62 Concept Adding authentication to requests
63 Authenticated requests with Python 3s urllibrequests
64 Concept Authenticated requests with Python 3s urllibrequests
65 Concept Authenticated SOAP services with suds
66 What is screen scraping and web scraping
67 Survey of screen scraping libraries
68 Scraping Talk Python by leveraging sitemaps
69 Downloading transcript html
70 Finding the title with BeautifulSoup
71 Searching for elements via CSS in BeautifulSoup
72 Concept Scraping with BeautifulSoup
73 What are user agents
74 Controlling your user agent in requests
75 Concept Controlling your user agent in requests
76 Youve done it