Take a look at Whistle first

Came to view the packet capture request page, visible display is very comprehensive

Can also display tree chart, according to the domain name to distinguish, very powerful function!


Installation steps


1. Install the Node

Since Whistle is a cross-platform Web debugging agent based on the Node implementation, we need to install the Node environment first

Node.js (nodejs.org)

Download it directly


2. Install the Whistle

After Node is successfully installed, run the NPM command to install whistle. For Mac or Linux users, add sudo in front of the command line, for example, sudo NPM install -g whistle.

 $ npm install -g whistle
Copy the code

The default image of NPM is in foreign countries. Sometimes the installation speed is slow or the installation cannot be done. If the installation cannot be done or the installation is slow, Taobao’s image installation can be used:

- registry=https://registry.npm.taobao.org $$NPM install CNPM - g CNPM install - g whistle or specified directly mirror installation:  $ npm install whistle -g --registry=https://registry.npm.taobao.orgCopy the code

3. Start the Whistle

Let me show you some common commands

The latest version of Whistle supports three equivalent commands — Whistle, W2, and wProxy

Start the whistle

 w2 start
Copy the code

Start on specified port

 w2 start -p 8899
Copy the code

Close the whistle

 w2 top
Copy the code

If no port is specified, the default whistle port is 8899


4. Check the whistle

You can access the configuration page in either of the following ways:

  • Method 1: domain name access local.whistlejs.com/
  • Method 2: Use the IP address and port number, for example, http://127.0.0.1:8899

Due to compatibility issues, it is best to use Chrome browser to access

Select NetWorl, at this time is not able to catch the request, we do not worry, also need a little configuration can catch the request!


5. Configure the proxy

Install the Chrome Proxy plug-in: SwitchyOmega is recommended

Once installed, click on the small circle and select options

New Scene Mode


6. Install the certificate


After the installation is complete, packets are captured

Go to Baidu and you can see that the Whistle console can catch the request


Matters needing attention

After configuring the proxy, remember to select it, otherwise the request will not be caught


My crawler column

Point me into the


Here’s what you guys want to say

I am aCode pipi shrimp, a prawns lover who loves to share knowledge, will update useful blog posts in the future, looking forward to your attention!!

Creation is not easy, if this blog is helpful to you, I hope you can key three even oh! Thank you for your support. See you next time