Copy requests from the devtools network panel as python requests code

Latest Version

Version
1.1
Update
January 17, 2023
Size
23.94KiB
Developer
Category
Users
3,000+
Rating
3 ★
Manifest Version
3
Web Store Status
Languages Support
English
See more
Permissions
Storage
See more

Copy as Python Requests 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.

== Changelog ==
## 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.
Read more

Source Manifest.json

{"update_url": "https://clients2.google.com/service/update2/crx", "name": "Copy as Python Requests", "description": "Copy requests from the devtools network panel as python requests code", "version": "1.1", "author": "Jannik Hartung", "manifest_version": 3, "icons": { "16": "icons/logo-16.png", "32": "icons/logo-32.png", "48": "icons/logo-48.png", "96": "icons/logo-96.png", "128": "icons/logo-128.png" }, "minimum_chrome_version": "88.0", "devtools_page": "devtools.html", "options_ui": { "browser_style": true, "open_in_tab": true, "page": "options.html" }, "background": { "service_worker": "background.js" }, "permissions": [ "storage" ], "action": { "browser_style": true, "default_title": "Copy as Python Requests", "default_popup": "popup.html" }}
Read more

Similar Extensions

icon

Python Shell Extension · Developer Tools 3,000+ 207 ★ 8.31MiB

icon

Selenium Auto Code Generator (Python) Extension · Developer Tools 3,000+ 2 ★ 924KiB

icon

Better Network Panel Extension · Developer Tools 3,000+ 3 ★ 2.14MiB

icon

py3redirect Extension · Developer Tools 3,000+ 13 ★ 74.53KiB

icon

Python Assist Extension · Developer Tools 3,000+ 2 ★ 27.67KiB

icon

PyConsole: Python shell uncomplicated Extension · Developer Tools 3,000+ 6 ★ 23.43KiB

icon

Python Executor Extension · Developer Tools 3,000+ 2 ★ 15.15KiB

icon

Your Python Editor (Beta) Extension · Developer Tools 3,000+ 6 ★ 1.81MiB

icon

HTTP-TRACKER Extension · Developer Tools 3,000+ 33 ★ 85.4KiB

icon

Online GitHub Python Interpreter Extension · Developer Tools 3,000+ 0 ★ 338KiB

icon

Python Tutor - Wiingy Extension · Productivity 3,000+ 3 ★ 10.28KiB

icon

Request Interceptor Extension · Developer Tools 3,000+ 58 ★ 1.89MiB

icon

Visual Python for Colab Extension · Developer Tools 3,000+ 7 ★ 14.84MiB

icon

Pyrun Extension · Developer Tools 3,000+ 4 ★ 240KiB

icon

CodeRun Extension · Productivity 3,000+ 4 ★ 87.5KiB

icon

Tamper Dev Extension · Developer Tools 3,000+ 29 ★ 532KiB

icon

Phytonic Extension · Fun 3,000+ 4 ★ 34.57KiB

icon

Request Maker Extension · Developer Tools 3,000+ 184 ★ 138KiB

icon

RestMan Extension · Developer Tools 3,000+ 38 ★ 478KiB

icon

tweak: mock and modify HTTP requests Extension · Developer Tools 3,000+ 190 ★ 3.22MiB

icon

API Trace Extension · Developer Tools 3,000+ 2 ★ 43.22KiB

icon

Inssman: Open-Source: Modify HTTP Request Extension · Developer Tools 3,000+ 10 ★ 3.51MiB

icon

QuickPy Python Interpreter Extension · Productivity 3,000+ 12 ★ 184KiB

icon

Page Modeller (Selenium, Robot Framework etc) Extension · Developer Tools 3,000+ 5 ★ 1.12MiB

User reviews

icon

Atnik (ID: 000000cb9c952729) Voted 5 ★ - Updated 03/29/2023 Very handy