import requests

# URL of the PHP script
url = "http://127.0.0.1:5001/trans.php"  # Replace with the actual URL where your PHP script is hosted

# Data to be sent in the POST request
data = {
    'q': 'monstro tipo shadow',
    'source': 'en',
    'target': 'pt'
}

response = requests.post(url, data=data)
print(response.status_code)
print(response.text)
