我什至不確定這是否發生了,它可能是 URLScan.io 的結尾,但使用以下代碼: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)我不斷收到以下錯誤:{ "message": "Wrong method, use POST", "description": "In order to scan a page, you have to POST here.", "status": 405}我不知道我做錯了什么。在我的調試器中,它說即使我調用 requests.post resp 也是 requests.get 返回對象。這怎么可能?我究竟做錯了什么?
添加回答
舉報
0/150
提交
取消