Generate Python Requests code from HAR file
Project description
Motivation
To write bots in Python, the two main options are:
Of course, requests bots are more stable but they require more daunting work to reverse engineer the javascript code and reproduce every request made by the client.
Discover har2requests!
Features
Installation
pip install har2requests
Usage
From Chrome or Firefox, go to the Network tab of the Developer Tools, put the filters you want and export to HAR.
To read from a file:
har2requests input.har > output.py
To read from the clipboard:
pbpaste | har2requests - > output.py
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
har2requests-0.0.1.tar.gz
(4.6 kB
view details)
Built Distribution
File details
Details for the file har2requests-0.0.1.tar.gz
.
File metadata
- Download URL: har2requests-0.0.1.tar.gz
- Upload date:
- Size: 4.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.20.1 setuptools/40.0.0 requests-toolbelt/0.8.0 tqdm/4.31.1 CPython/3.6.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3517e70c87b4ae81a938f084506c5b80c1a0a1d092cb993cc8b6c0c85288376e |
|
MD5 | 04b5e5fb4f49c6dd1f46ccb98ad85b41 |
|
BLAKE2b-256 | 51747703a50c71e273296ba28eeb43fc0cd003d6a7a9c5bbe135f90c74c810de |
File details
Details for the file har2requests-0.0.1-py3-none-any.whl
.
File metadata
- Download URL: har2requests-0.0.1-py3-none-any.whl
- Upload date:
- Size: 5.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.20.1 setuptools/40.0.0 requests-toolbelt/0.8.0 tqdm/4.31.1 CPython/3.6.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4fec5d65a244fff92af9e4bbc0afcb16308be9994a8aae0af44bc41d8f1b7258 |
|
MD5 | 4a3e8c6443c4daf1e5d4ee1283a51268 |
|
BLAKE2b-256 | d95c4a7c9d30abe3cba900ae258e4e4a8febf0ecaa7d9c19064e71a0b330052d |