mirror of
https://github.com/barkeser2002/srtranslator-bariskeser.git
synced 2026-09-25 01:09:59 +03:00
13 lines
249 B
Python
13 lines
249 B
Python
import httpx, json
|
|
|
|
deeplx_api = "http://node-kyb.bariskeser.com:1188/translate"
|
|
|
|
data = {
|
|
"text": "Hello World",
|
|
"source_lang": "EN",
|
|
"target_lang": "TR"
|
|
}
|
|
|
|
post_data = json.dumps(data)
|
|
r = httpx.post(url = deeplx_api, data = post_data)
|
|
print(r) |