我什至不確定這是否發(fā)生了,它可能是 URLScan.io 的結(jié)尾,但使用以下代碼:api = '####################'url = 'https://www.urlscan.io/api/v1/scan/'headers = { 'Content-Type': 'application/json', 'API-key': api}data = '{"url": "https://www.google.com", "public": "on"}'resp = requests.post(url, data=data, headers=headers)我不斷收到以下錯(cuò)誤:{ "message": "Wrong method, use POST", "description": "In order to scan a page, you have to POST here.", "status": 405}我不知道我做錯(cuò)了什么。在我的調(diào)試器中,它說(shuō)即使我調(diào)用 requests.post resp 也是 requests.get 返回對(duì)象。這怎么可能?我究竟做錯(cuò)了什么?
添加回答
舉報(bào)
0/150
提交
取消