I am trying to get the SSID of the WiFi network I am connected to in Python using the socket module. It's probably dead simple but I can't seem to figure it out.
Here is my code so far:
import socket
hostname = socket.gethostname()
IPAddress = socket.gethostbyname(hostname)
print("SSIP: " + hostname)
print("IP-Adress: " + IPAddress)