Firefox Browser Add-ons
  • Extensions
  • Themes
    • for Firefox
    • Dictionaries & Language Packs
    • Other Browser Sites
    • Add-ons for Android
Log in
Preview of Copy as Python Requests

Copy as Python Requests by Peace-Maker

Copy requests from the devtools network panel as Python requests code for fast traffic mimicing.

5 (1 reviews)5 (1 reviews)
283 Users283 Users
You'll need Firefox to use this extension
Download Firefox and get the extension
Download file

Extension Metadata

About this extension
WebExtension to export traffic of a tab into ready to go Python Requests calls for faster traffic mimicing.

Usage
With the extension installed:
  1. Open the Browser Devtools.
  2. Click around and generate the requests you want to export (see Network tab in Devtools).
  3. Click extension icon in toolbar at the top.
  4. Copy desired Python requests code from popup.

Features
  • 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 and Connection.
  • 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.
Rated 5 by 1 reviewer
Log in to rate this extension
There are no ratings yet

Star rating saved

5
1
4
0
3
0
2
0
1
0
Read 1 review
Permissions and dataLearn more

Required permissions:

  • Extend developer tools to access your data in open tabs
More information
Add-on Links
  • Support site
Version
1.1
Size
21.36 kB
Last updated
3 years ago (16 Jan 2023)
Related Categories
  • Web Development
Licence
GNU General Public Licence v3.0 only
Version History
  • See all versions
Add to collection
Report this add-on
Release notes for 1.1
## [1.1.0] - 2023-01-16

### Added

- Add option to quickly disable the whole filter lists.
- Add option to render params, headers, cookies etc on separate lines.

### Changed

- Removed unneeded `host` permission. Apparently the devtools permission is enough to read the network HAR.
- Sort requests by start date if they aren't already.

### Fixed

- Fixed generating of `multipart/form-data` postData when the params aren't available in a pre-parsed form in the HAR.
- Fixed extension losing connection to devtools after some time of inactivity.
More extensions by Peace-Maker
  • There are no ratings yet

  • There are no ratings yet

  • There are no ratings yet

  • There are no ratings yet

  • There are no ratings yet

  • There are no ratings yet

Go to Mozilla's homepage

Add-ons

  • About
  • Firefox Add-ons Blog
  • Extension Workshop
  • Developer Hub
  • Developer Policies
  • Community Blog
  • Forum
  • Report a bug
  • Review Guide

Browsers

  • Desktop
  • Mobile
  • Enterprise

Products

  • Browsers
  • VPN
  • Relay
  • Monitor
  • Pocket
  • Bluesky (@firefox.com)
  • Instagram (Firefox)
  • YouTube (firefoxchannel)
  • Privacy
  • Cookies
  • Legal

Except where otherwise noted, content on this site is licensed under the Creative Commons Attribution Share-Alike Licence v3.0 or any later version.