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

How to download and manually install Copy as Python Requests extension for Chrome

Looking for a way to install Copy as Python Requests extensions for Chrome, you can search for them in the Chrome Web Store, clicking the "Add to Chrome" button, and following the straightforward process.

However, you may need to install Copy as Python Requests extensions manually, this article outlines two simple methods to effortlessly install Copy as Python Requests extensions, whether they come as unpacked folders in compressed formats like .zip or as .crx files.

Method 1: Download Copy as Python Requests extension and manually install through Drag &Drop

If you ever need to manually install a Copy as Python Requests extension for Chrome, don't worry, it's a simple process. Just follow these easy steps, and you will have your extension ready to use in no time.

Step 1: Download the Copy as Python Requests Extension by clicking the "Download CRX" button on the website.

Look for the Copy as Python Requests extension you wish to install. Go to the website and download the Copy as Python Requests extension package, which is usually a .CRX file and comes in a zipped file. Here ".crx" file is the format for Copy as Python Requests extension that contains all the data.

Step 2: Extract &Arrange Files

Once the file is downloaded, extract that file into its own folder. Similarly, give that extension files a permanent home. In other words, keep it in a folder that you don't accidentally delete it because these files will be needed to make that extension work.

Step 3: Go to the Chrome Extensions Page

Open Google Chrome and in the address bar, type chrome://extensions; it will open the Google Chrome extensions page. Make sure that "My extensions" is selected in the sidebar.

Step 4: Drag and Drop the Extension

Now, go to the folder where you extracted the Copy as Python Requests extension and drag &drop the extension file from there anywhere onto the extension page within Google Chrome.

Step 5: Complete the Installation

Once you drag and drop the extension file, follow the steps that Google Chrome takes you through. Similarly, if the extension file is of .crx file format, you will be required to review the permissions and then add the extension.

Now, you can manage that added extension as you would like to with any other Chrome extension that you added through Chrome Webstore. Its icon will also appear in the Google Chrome Menu on the right side of the address bar once you activate it.

Method 2: Download Copy as Python Requests extension for Chrome and install in Developer Mode

This is another method to install Copy as Python Requests extension manually, but the twist is that here, you install by enabling the developer mode option provided in Google Chrome. This mode is commonly used for testing extensions or running unpublished tools.

Step 1: Download the Copy as Python Requests extension file

Select and download the Copy as Python Requests extension by clicking the 'Download CRX' button on the website.

Step 2: Extract the downloaded contents

Convert the file to a ZIP file if it is in CRX format then extract the Copy as Python Requests extension zip file or folder that you downloaded. Make sure you extract it using the same folder name and keep it safely in another folder, so you don't delete it by mistake. The extracted folder will be needed to keep your Copy as Python Requests extension running.

Step 3: Open Chrome Extension Setting Page

In the address bar of Google Chrome, type chrome://extensions and open the Chrome Extension Page.

Step 4: Enable Developer Mode

After opening the Chrome Extension page, look at the top right side, and you will find the toggle option of "Developer mode."Simply enable that developer mode option.

Step 5: Load the Unpacked Extension

Once you enable the developer mode option, you will see the menu of Load Unpacked, Pack Extensions and Update. From that, select the option "Load unpacked."

Step 6: Select the Extension Folder

Once the pop-up opens upon clicking Load unpacked, select the Copy as Python Requests extension directory and click on the "Select Folder "button.

Step 7: Confirm and Install

After you select an extension folder of a Google Chrome extension you're installing manually, confirm its installation for the final time and let the installation complete.

Conclusion

Here we've made a step-by-step guide on How to manually install Copy as Python Requests extension in 2 ways. We hope this guide proves helpful.

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