mirror of
https://github.com/OS-Copilot/OS-Copilot.git
synced 2026-05-05 03:00:15 -04:00
21 lines
334 B
Python
21 lines
334 B
Python
import requests
|
|
import json
|
|
|
|
# API endpoint
|
|
url = "http://43.159.144.130:8079/tools/wolframalpha"
|
|
|
|
# Headers
|
|
headers = {
|
|
'Content-Type': 'application/json'
|
|
}
|
|
|
|
# Data
|
|
data = {
|
|
"query": "5+6"
|
|
}
|
|
|
|
# Send the request
|
|
response = requests.post(url, headers=headers, data=json.dumps(data))
|
|
|
|
# Print the response
|
|
print(response.json()) |