In this brief video, I’ll show you how to use the Python requests module to send information back and forth between your program and a remote webserver.

Requests Documentation: https://pypi.org/project/requests/
Install requests module: pip3 install requests

CODE:

import requests
word = input("What word would you like to translate?  ")
url = "https://christianthompson.com/dictionary.py"
params = {"word":word}
response = requests.get(url, params)
print(f"Status Code: {response.status_code}")
print(response.text)

#python

Python Requests Module: Just the Basics
4.95 GEEK