Веб-сайт: https://getir.com/
Код:
Код: Выделить всё
import os
import requests
global numer
global countryCode
global countryNumber
number = "5323214965"
countryCode = "90"
countryNumber = "+905323214965"
def main():
header = {
'content-type': 'application/json',
'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/123.0.0.0 Safari/537.36 Edg/123.0.0.0'
}
with requests.Session() as s:
page = s.get('https://getir.com/', headers=header)
data = {'countryCode': countryCode, 'gsm': number}
response = s.post('https://client-api-gateway.getirapi.com/client/send-otp', data)
print(response.status_code)
main()
Подробнее здесь: https://stackoverflow.com/questions/783 ... de-problem
Мобильная версия