Когда я запускаю команду Curl, все в порядке:
Код: Выделить всё
curl -I https://www.binance.com/api/v3/ticker/24hr
HTTP/2 200
Код: Выделить всё
import requests
response = requests.get(url=f'https://www.binance.com/api/v3/ticker/24hr')
print(response.content)
Код: Выделить всё
Error 403 Forbidden - This request is blocked.
For security reasons you can't connect to the server for this app or website at this time.
It may be that you have too many requests or the illegal request payload is identified as an attack.
Please try again later.
Версии:
Python 3.10.12
запросы 2.25.1
Подробнее здесь: https://stackoverflow.com/questions/792 ... eturns-403
Мобильная версия