вывод что-то типа �.
вот сам код
import requests as rq
data = {
'from': "ru",
'text': "я крутой хороший скрипт программирование",
'token': ""
}
headers = {
'Accept': '*/*',
'Accept-Encoding': 'gzip, deflate, br',
'Accept-Language': 'ru-KZ,ru-RU;q=0.9,ru;q=0.8,en-US;q=0.7,en;q=0.6',
'Content-Type': 'application/json',
'Origin': 'https://neuralwriter.com',
'Referer': 'https://neuralwriter.com/',
'Sec-Ch-Ua': '"Google Chrome";v="119", "Chromium";v="119", "Not?A_Brand";v="24"',
'Sec-Ch-Ua-Mobile': '?0',
'Sec-Ch-Ua-Platform': '"Windows"',
'Sec-Fetch-Dest': 'empty',
'Sec-Fetch-Mode': 'cors',
'Sec-Fetch-Site': 'same-site',
'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/119.0.0.0 Safari/537.36'
}
resp = rq.post('https://api2.neuralwriter.com/rewrite-light', json=data, headers=headers)
resp.encoding = 'utf-8'
print(resp.status_code)
print(resp.text)