I want to regularly record Netease Cloud's listening song rankings, and found that the interface has two encryption parameters params and encSecKey for analysis and recording.
The data interface is /weapi/v1/play/record
Find the record by XHR location.
Get the code locally for debugging and completion, the process is relatively simple and will not be described in detail.
The csrf-token is returned by the server, and it can also be empty.
JavaScript code
const jsdom = require("jsdom")