Skip to content

A tutorial shows how to capture HTTP Traffic from Python script. Works with requests and httpx library

Notifications You must be signed in to change notification settings

ProxymanApp/proxyman-capture-traffic-python

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 

Repository files navigation

Capture HTTPS Request traffic from Python (requests vs httpx) with Proxyman

This is a simple example of how to capture HTTPS request traffic from Python using the Proxyman tool.

Prerequisites

  • Proxyman macOS app installed. Download from here.
  • Python 3.12 or later installed.

Running the Python Script

  1. Make sure you have the required packages installed:
pip install requests httpx
  1. Run the Proxyman app -> Setup menu -> Automatic Setup… -> Click on "Open new Terminal" button.

Proxyman Setup

  1. On the new Terminal -> Run the Python script:
python main.py

Run python script

  1. On the Proxyman app, Proxyman will automatically capture the HTTPS request traffic from the Python script.

Proxyman automatically capture Python requests

  1. Done!

About

A tutorial shows how to capture HTTP Traffic from Python script. Works with requests and httpx library

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages