Want to see wifi ssid’s near you? But want it to be made with python instead of looking?
Something nice and easy but good to understand how python finds ssid’s and such.
# importing the subprocess module
import subprocess
# using the check_output() for having the network term retrieval
devices = subprocess.check_output(['netsh','wlan','show','network'])
# decode it to strings
devices = devices.decode('ascii')
devices= devices.replace("\r","")
# displaying the information
print(devices)
with open('wifi_list_near.txt', 'w') as wf:
wf.write(devices)
This will create a text file for you with all the wifi networks near you!