命令如下- Invoke-WebRequest -Uri "http://www.musictool.top/" `
- -Method "POST" `
- -Headers @{
- "Accept"="application/json, text/javascript, */*; q=0.01"
- "X-Requested-With"="XMLHttpRequest"
- "User-Agent"="Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.61 Safari/537.36 Edg/83.0.478.37"
- "Origin"="http://www.musictool.top"
- "Referer"="http://www.musictool.top/?name=the%20right%20path&type=qq"
- "Accept-Encoding"="gzip, deflate"
- "Accept-Language"="zh-CN,zh;q=0.9,en;q=0.8,en-US;q=0.7,en-GB;q=0.6"
- } `
- -ContentType "application/x-www-form-urlencoded; charset=UTF-8" `
- -Body "input=the+right+path&filter=name&type=qq&page=1"
复制代码 在powershell里面可以运行,如何把他写成python的代码?
主要是ContentType不懂处理 |