WebExtension to export traffic of a tab into ready to go Python Requests calls for faster traffic mimicing.
Published in:
With the extension installed:
- Open the Browser Devtools.
- Click around and generate the requests you want to export (see Network tab in Devtools).
- Click extension icon in toolbar at the top.
- Copy desired Python requests code from popup.
- Generate Python code for every request observed by the open devtools.
- Configurable filters through extension options page:
- Ignore requests to static resources by filtering response content-types.
- Ignore auto-generated HTTP headers like
User-Agent
andConnection
.
- Optionally hide blocked requests or 404 responses for requests e.g. for missing
favicon.ico
. - Optionally generate a
requests.session()
instance.- Try to hide cookies set by a response from an earlier request in the session.
Temporarily load the extension in Firefox or Chrome from the unpacked folder.