Sling Academy
Home/Python/Python: Network & JSON tutorials

Python: Network & JSON tutorials

JSON is a widely used data format for exchanging information between different systems. It stands for JavaScript Object Notation and is a lightweight format that is easy to read and write. If you are a software developer, you are likely to work with JSON at some point, more or less, in your career. In this series of tutorials, we will learn how to work with JSON in Python, one of the most popular programming languages nowadays.

In this series, we will start with the basics of JSON and how to create and parse JSON data in Python. We will cover the most common use cases for working with JSON, such as reading and writing JSON files and using JSON in RESTful APIs. We will also cover more advanced topics, such as handling complex JSON structures and working with JSON in databases.

Throughout the series, we will provide practical examples to help you understand how to work with JSON and Python in real-world scenarios. You will also see tips and best practices for writing good code that is easy to read, understand, and maintain.

Whether you are a beginner or an advanced Python developer, this series will help you to become more comfortable and confident when dealing with JSON.

1 How to Parse JSON Data in Python

2 Python: Write a list of dictionaries to a JSON file

3 Python: How to Convert a List to JSON (2 Approaches)

4 Python: 3 Ways to Fetch Data from GitHub API

5 Python: 3 ways to Install Packages Offline (without Internet)

6 Python requests library: How to set headers

7 Python requests library: How to set params

8 Python requests module: How to set cookies

9 Python requests module: How to POST JSON data

10 Python requests module: How to upload files (form-data)

11 Python requests module: How to download files from URLs

12 Python requests module: How to download a large file smoothly

13 Fixing Python Requests SSLError: CERTIFICATE_VERIFY_FAILED

14 Using aiohttp to send GET requests in Python (2 examples)

15 Python Requests module: How to add API key/credentials to HTTP request

16 Using aiohttp to make POST requests in Python (with examples)

17 Python Requests module: How to use proxy

18 How to set timeouts when using aiohttp in Python

19 Python Requests module: Is it possible to use async/await?

20 Python Requests Module: How to Set Timeouts

21 Python & aiohttp: How to download files using streams

22 Python Requests module: Setting custom user agent

23 Python & aiohttp: How to upload files to a remote server

24 Resolving ImportError: No Module Named ‘requests’ in Python

25 Python & aiohttp: Sending multiple requests concurrently

26 Python Requests module: How to parse HTML responses

27 Python & aiohttp: How to create a simple web server

28 3 Ways to Handle Exceptions in aiohttp (Python)

29 Python aiohttp: How to Set Custom Headers

30 Fixing aiohttp RuntimeError: No Current Event Loop in Python

31 Python aiohttp: Limit the number of requests per second

32 Python aiohttp: Limit the number of concurrent requests

33 Python Requests module: How to crawl raw HTML from a URL

34 Python aiohttp: How to Set Parameters when Making Requests

35 Fixing Python aiohttp RuntimeError: Event Loop Already Running

36 Python Requests Module: Exception Handling Best Practices

37 Fixing Python aiohttp Error: Network is Unreachable

38 Python aiohttp: How to Send API Key or User Credentials

39 Fixing Aiohttp JSON Mimetype Error in Python

40 Python aiohttp: How to Manage Log Messages

41 Python aiohttp RuntimeWarning: Enable tracemalloc to get the object allocation traceback

42 Python Requests module: Print response status code and headers

43 Python Requests module: Tracking redirection and history

44 Python: Using aiohttp to crawl webpages asynchronously

45 Python Requests Module HTTPError: Causes and Solutions

46 Resolving Timeout Exceptions in Python Requests Module

47 Python ‘requests’ module: TooManyRedirects Exception [Solved]

48 Resolving ConnectionError Exception in Python’s Requests Module

49 Resolving Python ‘requests’ Module: RequestException Error

50 Python ‘requests’ module: Encoding/Decoding JSON data

51 Python Requests module: Auto retry for failed HTTP requests

52 Python ‘requests’ module: 403 Forbidden error

53 Python ‘requests’ Module: How to Disable Warnings

54 Fixing MaxRetryError in Python Requests Module

55 Python ‘requests’ module: How to disable log messages

56 Fix: Python requests SSLError – SSL Module Not Available

57 Python Requests SSL Error: EOF occurred in violation of protocol

58 Fixing Python Requests Error: No Connection Adapters

59 Fixing Python requests.exceptions.SSLError: dh key too small

60 How to Fix SSL InsecurePlatform Error in Python Requests

61 Python Requests: Download a File from an FTP Server

62 requests vs aiohttp: Which is better for 2024?

63 Python Requests module: How to send CSRF token in headers

64 Python ‘requests’ module: Handle XML response

65 Python ‘requests’ module: Handle CSV response

66 How to Block Requests Sent by Python ‘requests’ Module?

67 Python ‘requests’ module: How to force use of IPv4 or IPv6

68 How to deal with Python InsecureRequestWarning

69 Python: How to Upload Files with ‘httpx’ (form-data)

70 Python httpx: How to make GET and POST requests

71 Python httpx: How to set request timeout

72 Python httpx: How to set headers

73 Best open-source libraries to make HTTP requests in Python