Warning: Cannot modify header information - headers already sent by (output started at /home/www/dynamic/pluto.ro/traduceri.pluto.ro/public_html/index.php:2) in /home/www/dynamic/pluto.ro/traduceri.pluto.ro/public_html/wordpress/wp-includes/feed-rss2.php on line 8
auth_key = ‘your_API_key_here’
target_lang = sys.argv[1]
text = sys.argv[2]
data = {
‘auth_key’: auth_key,
‘text’: text,
‘target_lang’: target_lang}
response = requests.post(‘https://api-free.deepl.com/v2/translate’, data=data)
print(response.json()[“translations”][0][“text”])
]]>