Python REST API Tutorial (Automation Tools)

Veröffentlicht am: 29 Januar 2021
auf dem Kanal: CodingNomads
997
12

In this Python REST API tutorial, learn how to use Python to automate making calls to free web APIs, receive content they offer, and auto-generate a simple webpage using remote API content.

Fetch image links and famous quotes from two different APIs and use that content to build your own webpage. You'll also learn about data formats used to transmit this information and how it translates to Python code, how to debug and inspect your code, how to write to files and much more.

With Python REST APIs, you can tap into the infinite content available on the Internet!

Concepts Covered: Python REST API Tutorial
External libraries, pip, virtual environments
Web interactions, interfacing with APIs
Reading documentation
GET requests
JSON
breakpoint() debugging
Python collections: dictionaries and lists
String methods
Simple HTML
Writing to files, pathlib revisited

Chapters:
0:00 Intro
6:44 Starting the project in VS Code
10:54 Using a virtual environment for development
13:00 Installing the Requests Library
14:52 Diving in to the APIs
20:05 Making a request from the API
26:43 Understanding responses from the API
30:17 Using breakpoint for debugging
34:49 Using an item in the list to access the string url
37:23 Using the image text command
41:01 Recapping the code thus far
43:26 Getting the quote from the API
47:02 Python dictionaries
49:20 Building the html structure
53:53 Creating the website index with a pathlib
58:42 Changing the quote text & image size
1:01:52 Q&As

Resources:
👾 GitHub Repo: https://github.com/CodingNomads/pytho...
📺 Twitch for Future Trainings:   / codingnomads  
🎓 Start Learning Python for Free: https://platform.codingnomads.co/learn/
🧭 Website: https://codingnomads.co/


Auf dieser Seite können Sie das Online-Video Python REST API Tutorial (Automation Tools) mit der Dauer stunde minuten sekunde in guter Qualität ansehen, das der Benutzer CodingNomads 29 Januar 2021 hochgeladen hat, den Link mit Freunden und Bekannten teilen, dieses Video wurde auf Youtube bereits 997 Mal angesehen und es wurde von 12 den Zuschauern gefallen. Viel Spaß beim Betrachtenden Zuschauern gefallen!