
Python's Requests Library (Guide) – Real Python
In this tutorial on Python's Requests library, you'll see some of the most useful features that Requests has to offer as well as ways to customize and optimize those features. You'll learn how to use requests efficiently and stop requests to external services from …
Making HTTP Requests With Python
The requests library is the de facto standard for making HTTP requests in Python. It abstracts the complexities of making requests behind a beautiful, simple API so that you can focus on interacting with services and consuming data in your application. This course shows you how to work effectively with requests, from start to finish.
Python Modules and Packages – An Introduction – Real Python
This article explores Python modules and Python packages, two mechanisms that facilitate modular programming. Modular programming refers to the process of breaking a large, …
Caching External API Requests - Real Python
Learn how to to cache external API calls in your Python apps with the excellent "requests" module. This tutorial includes a full example project that demonstrates this optimization technique.
Python import: Advanced Techniques and Tips – Real Python
This tutorial will provide a thorough overview of Python’s import statement and how it works. The import system is powerful, and you’ll learn how to harness this power. While you’ll cover many of the concepts behind Python’s import system, this tutorial is mostly example driven. You’ll learn from several code examples throughout.
HTTP Requests With Python's urllib.request (Overview)
If you need to perform HTTP requests using Python, then the widely used Requests library is often the way to go. However, if you prefer to use only standard-library Python and minimize dependencies, then you can turn to urllib.request instead.
Requests Introduction & Overview (Video) – Real Python
In this lesson you’ll get a general overview about the requests library. Furthermore, it reveals you how to install requests on your machine using pip and how to import it.
Python's __all__: Packages, Modules, and Wildcard Imports
In this tutorial, you'll learn about wildcard imports and the __all__ variable in Python. With __all__, you can prepare your packages and modules for wildcard imports, which are a quick way to import everything.
How to Download Files From URLs With Python
To download a file from a URL using the urllib package, you can call urlretrieve() from the urllib.request module. This function fetches a web resource from the specified URL and then saves the response to a local file. To start, import urlretrieve() from urlllib.request:
Modules and Packages (Learning Path) – Real Python
In this course, you'll explore Python modules and Python packages, two mechanisms that facilitate modular programming. See how to write and import modules so you can optimize the structure of your own programs and make them more maintainable.