https://github.com/bobvanderlinden/mitmproxy2har
https://github.com/bobvanderlinden/mitmproxy2har
Last synced: 29 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/bobvanderlinden/mitmproxy2har
- Owner: bobvanderlinden
- License: mit
- Created: 2020-04-09T13:22:19.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2020-04-10T22:18:46.000Z (about 5 years ago)
- Last Synced: 2025-02-10T04:41:32.396Z (3 months ago)
- Language: Python
- Homepage:
- Size: 13.7 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# mitmproxy2har
A command-line tool to convert mitmproxy recordings to [HAR format](https://en.wikipedia.org/wiki/HAR_%28file_format%29).
## Usage
First record requests and responses using mitmproxy. For instance:
```sh
mitmdump --save-stream-file recording &
http_proxy=http://127.0.0.1:8080 curl http://google.com/
```Then use `mitmproxy2har` to convert the recording to JSON:
```sh
mitmproxy2har recording > recording.har
```## Installation
```sh
pip install mitmproxy2har
```## Development
Use the following to install mitmproxy2har while being able to make changes to `mitmproxy2har.py`:
```sh
python3 -m venv venv
pip install --editable .
```