Copy as Python Requests

Copy requests from the devtools network panel as Python requests code for fast traffic mimicing.
What is Copy as Python Requests?
Copy as Python Requests is a Firefox add-on that allows you to export traffic from a tab as Python requests code. With this add-on, you can easily generate Python code for requests observed in the browser devtools, making it faster to mimic traffic. The add-on also provides configurable filters and options to hide blocked requests or 404 responses, as well as the ability to generate a requests.session() instance.

Add-on stats

Users: 319 ▲ 3
Rating: 5.00 (1)
Version: 1.1 (Last updated: 2023-01-16)
Creation date: 2022-07-26
Weekly download count: 7
Firefox on Android: No
Risk impact: Low risk impact
Risk likelihood: Low risk likelihood
Manifest version: 2
Permissions:
  • storage
Size: 21.87K
URLs: Website

Other platforms

Copy as Python Requests (v1.1)
3.00 (2) 3,000
Not available on Edge
Want to check extension ranking and stats more quickly for other Firefox add-ons? Install Chrome-Stats extension to view Chrome-Stats data as you browse the Firefox Browser Add-ons.

Add-on summary

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.

User reviews

not working after updating firefox
View all user reviews

Add-on safety

Risk impact

Copy as Python Requests requires very minimum permissions.

Risk likelihood

Copy as Python Requests has earned a fairly good reputation and likely can be trusted.

Upgrade to see risk analysis details