Browser URL requests are directly converted into python code

I found a website that can directly convert browser requests into python code. Also supports NodeJS and PHP
URLs:
https://curl.trillworks.com/
This is a website that converts curl url requests into code.

First we need to know what curl is.
curl is an open source file transfer tool that works in command line mode. It is widely used in Unix, various Linux distributions, and has ported versions under DOS and Win32 and Win64. You can directly access the URL, support multiple protocols and parameter settings and even cookie settings. Simply put, it is possible to simulate a request.

The development tool of the Chorme browser supports direct copy as curl, and then uses the website tool to convert the curl command into python requests code . The

operation process is as follows:

In Chrome, press F12 to enter developer mode.
Select the Network tab and
request the website URL
. In the request list, select the URL to be processed, right-click to copy as curl (cmd)
and paste it into the website to automatically generate Python code.

The demonstration process is as follows (gif image from the Internet):

 

Is it super convenient?
In fact, the most convenient place is that various request headers should not be copied and pasted one by one, and formatted....

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=324444592&siteId=291194637